select * from information_schema.TABLES where TABLE_SCHEMA=(select database()) and `table_name` ='your table'
mysql查询某个数据库是否存在某个表
最新推荐文章于 2023-11-03 17:14:23 发布
select * from information_schema.TABLES where TABLE_SCHEMA=(select database()) and `table_name` ='your table'