您的位置:首页 > 数据库

sql查询查所有表名(table)

2010-10-21 11:20 225 查看
Mysql查询指定数据库中的所有表的详细信息:

select * from information_schema.tables where table_schema='表名' ;

Sqlite查询指定数据库中所有表的详细信息:

select * from sqlite_master WHERE type = "table";

按条件查询所有表名:

select * from sqlite_master WHERE type = "table" AND tbl_name like 'syslog_%';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: