ITeye博客

Mysql 读取 表结构

msnvip · 2008-01-19 12:05 · mysql · Markdown

select `TABLE_NAME` from `INFORMATION_SCHEMA`.`TABLES` where `TABLE_SCHEMA` = 'truck_development' and `TABLE_TYPE` = 'BASE TABLE'
select * from information_schema.tables where table_schema = 'truck_development';
select * from information_schema.columns
select data_type, count(*) from information_schema.columns where table_schema = 'truck_development' group by data_type

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。