我想在程序中动态为临时表添加字段,怎样写sql
想为临时表#t加identity(int,2,1)zd 字段
[最优解释]
alter table #t alter column 列名 int identity(2,1)
[其他解释]
在程序用写DDL语句不就行咯?
[其他解释]
只要在临时表对应的作用域中使用ddl语句修改即可。
[其他解释]
具体怎么写啊
发布时间: 2012-12-15 15:16:03 作者: rapoo
我想在程序中动态为临时表添加字段,怎样写sql
想为临时表#t加identity(int,2,1)zd 字段
[最优解释]
alter table #t alter column 列名 int identity(2,1)
[其他解释]
在程序用写DDL语句不就行咯?
[其他解释]