Jika Anda ingin benar, gunakan INFORMATION_SCHEMA .
SELECT *
FROM information_schema.tables
WHERE table_schema = 'yourdb'
AND table_name = 'testtable'
LIMIT 1;
Atau, Anda dapat menggunakan SHOW TABLES
SHOW TABLES LIKE 'yourtable';
Jika ada baris di hasil, tabel ada.