Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to check for empty mysql table

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default How to check for empty mysql table

    how to make query for mysql that will return if it is an empty table or not?


  2. #2
    Member
    Join Date
    Aug 2011
    Posts
    48
    My Mood
    Fine
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: How to check for empty mysql table

    Quote Originally Posted by A4Andy View Post
    how to make query for mysql that will return if it is an empty table or not?
    "SELECT COUNT(*) FROM MyTable"

    immutable objects
    Last edited by ha.minh.nam; December 4th, 2011 at 06:34 PM.

Similar Threads

  1. how to access mysql table using java and display it?
    By vivin09 in forum Member Introductions
    Replies: 2
    Last Post: August 10th, 2011, 02:41 PM
  2. checking for empty strings?
    By Celeadyne in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 1st, 2010, 04:18 PM
  3. empty response received
    By grashmi13 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: September 16th, 2010, 05:30 PM
  4. [SOLVED] Supressing empty lines and does not do until the end! Why ?
    By lumpy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 18th, 2010, 06:38 AM
  5. Adding Marathi words to MySQL table
    By vaishali in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: July 8th, 2009, 06:43 AM