1. 程式人生 > >mysql 檢視是否存在某一張表

mysql 檢視是否存在某一張表

判斷表是否存在

SELECT table_name FROM information_schema.TABLES WHERE table_name ='yourname';

判斷儲存過程是否存在

select * from information_schema.ROUTINES a where a.SPECIFIC_NAME='sp_analy setimeout'