查询数据库中所有表名的另一种方式

第一种我们学过的:

show tables;

第二种我第一次见到的:

select table_name from information_schema.tables where table_schema='当前数据库'

是因为要写一个存储过程,第一种方式不适用。

posted @ 2021-12-15 20:05  哩个啷个波  阅读(39)  评论(0)    收藏  举报