mysql SELECT auto_increment FROM information_schema.`TABLES` WHERE TABLE_SCHEMA='my_db_name' AND TABLE_NAME='my_table_name';该方法获取指定库中指定自增主键表中下一个自增值时的id;sqliteSelect seq From sqlite_sequence Where name = '自增主键表名'