-->用计算列create table #(col1 int identity, col2 as col1+1)
insert # default values
insert # default values
insert # default valuesselect * from #/*
col1        col2
----------- -----------
1           2
2           3
3           4
*/drop table #