In sqlite how to check the table is empty or not

sqlite

I need the check the table is empty or not
employee table contains columns are id name

id  name
1   john 
2   hunter
3   smith
4   will

Best Answer

If your table can contain a lot of rows, you can win some time with

SELECT count(*) FROM (select 0 from employee limit 1);