Home > front end >  How to check if the database table is empty or not?
How to check if the database table is empty or not?

Time:10-31

Is it possible to check if the database table is empty if it is empty?

And if it was empty, show false

CodePudding user response:

SELECT EXISTS (SELECT 1 FROM table);

CodePudding user response:

you can check if(empty ($array)) where you get your data

  • Related