日期:2014-05-17  浏览次数:20420 次

我想在程序中动态为临时表添加字段,怎样写sql
想为临时表#t加identity(int,2,1)zd 字段
------最佳解决方案--------------------
alter table #t alter column 列名 int identity(2,1)
------其他解决方案--------------------
在程序用写DDL语句不就行咯?
------其他解决方案--------------------
引用:
想为临时表#t加identity(int,2,1)zd 字段


只要在临时表对应的作用域中使用ddl语句修改即可。 

------其他解决方案--------------------
具体怎么写啊