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'

猜你喜欢

转载自hck.iteye.com/blog/2165018