Pilih ada SQL

SELECT EXISTS(SELECT * FROM bdd.table LIMIT 1);
Smart Bunny