SELECT * FROM information_schema.TABLES where TABLE_SCHEMA = (select database()) and table_type = 'BASE TABLE';

这里需要注意多schema和视图

By xbingo

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注