MySQL表自增ID查询与设置

表自增ID查询

select table_name, auto_increment from information_schema.tables where table_name = 't_sentence' and table_schema = 'language_trainer';

表自增ID设置

alter table t_user auto_increment = 1;