You can do:


select count(*) from my_table;


This gives you the number of records.  If it's 0, table's empty.



On Thursday, August 23, 2012 5:12:58 AM UTC-5, Sadhna Upadhyay wrote:
>
>   Hi everybody,
>
>        can some one tell me how to check table is empty or not actually 
> after deleting records from table ,when i click on view button force close 
> error.and if table is not empty then there is not any error on clicking 
> view button so i want to apply a condition if table is empty then toast 
> massage  or aert shold pop when we try view empty table in database.
>
>
>
>
> Thanks 
> sadhana
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to