"SHOW TABLE STATUS LIKE '表名'" 会获取到表的信息

Array ( [0] => Array ( [Name] => uc_members [Engine] => MyISAM [Version] => 10 [Row_format] => Dynamic [Rows] => 5078858 [Avg_row_length] => 93 [Data_length] => 473629252 [Max_data_length] => 281474976710655 [Index_length] => 335659008 [Data_free] => 0 [Auto_increment] => 9133900 [Create_time] => 2014-01-10 08:31:55 [Update_time] => 2014-10-31 11:17:09 [Check_time] => 2014-01-10 08:33:13 [Collation] => utf8_general_ci [Checksum] => [Create_options] => [Comment] => ) )

里面有个Auto_increment就是下一个ID;

posted on 2014-10-31 11:22  沉默的土豆  阅读(403)  评论(0编辑  收藏  举报