查询数据库中所有表名的另一种方式
第一种我们学过的:
show tables;
第二种我第一次见到的:
select table_name from information_schema.tables where table_schema='当前数据库'
是因为要写一个存储过程,第一种方式不适用。
第一种我们学过的:
show tables;
第二种我第一次见到的:
select table_name from information_schema.tables where table_schema='当前数据库'
是因为要写一个存储过程,第一种方式不适用。