sqlserver
--只有一列自增列的数据库表添加数据
create table ttt(
id int identity(1,1) primary key
)
set identity_insert ttt ON--打开
insert into ttt(id) select max(id)+1 from ttt;
mysql
insert into tt(id) values(0);