标签:line rom 数据库名 主键 tables 递增 不同的 www type
select TABLE_SCHEMA,TABLE_NAME,TABLE_TYPE,AUTO_INCREMENT,TABLE_ROWS from information_schema.`TABLES` where TABLE_SCHEMA = ‘数据库名‘ and TABLE_NAME = ‘表名‘ ;
通过查询不同列名,获取不同的表信息, TABLE_SCHEMA = "数据库名",table_name = ”表名”, table_type = "表类型",auto_increment = “自增主键id”,table_rows = 行数? 似乎不是绝对准确。
http://www.mysqlpub.com/onlinemanual/doc/refman/5.1/zh/information-schema.html mysql 参考手册,中文版
标签:line rom 数据库名 主键 tables 递增 不同的 www type
原文地址:http://www.cnblogs.com/sky-tiankong/p/7387845.html