How to check table is exists in database mysql
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.


This is another way to check if table exists or not. SHOW TABLES LIKE 'TableName';
Or Alternatively you can use like this...SELECT EXISTS(
SELECT * FROM information_schema.tables
WHERE table_schema = 'database'
AND table_name = 'table'
);It actually return a boolean.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Nov 3, 2020, 10:32 PM EST