SQL语句-判断数据库中是否有这张表

方法1

select count(1) from sys.objects where name = student

方法2

SELECT table_name FROM information_schema.TABLES WHERE table_name =student

 

程序员阿飞

2021年4月21日