SQL查询数据库中所有表名

时间:2020-10-29 09:56:35   收藏:0   阅读:29
SELECT
	table_name,table_type,table_schema
FROM
	information_schema.TABLES 
WHERE
	table_schema = ‘security_domain‘ 
	AND table_type = ‘BASE TABLE‘;

  NOTE:

      This sql only query tables under database security_domain

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!