判断表是否存在
SELECT table_name FROM information_schema.TABLES WHERE table_name ='yourname';
判断存储过程是否存在
select * from information_schema.ROUTINES a where a.SPECIFIC_NAME='sp_analy setimeout'
判断表是否存在
SELECT table_name FROM information_schema.TABLES WHERE table_name ='yourname';
判断存储过程是否存在
select * from information_schema.ROUTINES a where a.SPECIFIC_NAME='sp_analy setimeout'