当我进口表在SQL它建议真正的数据类型,现在我想改变所有列双师型 ...Alter在SQL Server中的所有列的数据类型
是否有任何脚本来自动执行此操作在SQL枭雄工作室
我的表是500列:
`After doing` EXECUTE sp_help traS
Col Type Comp len Prec Scale Nullable TrimTrailing Fixed Collation
-------------------------------------------------------------------------------
x1 real no 4 24 NULL yes (n/a) (n/a) NULL
x2 real no 4 24 NULL yes (n/a) (n/a) NULL
x3 real no 4 24 NULL yes (n/a) (n/a) NULL
x4 real no 4 24 NULL yes (n/a) (n/a) NULL
...
x500 real no 4 24 NULL yes (n/a) (n/a) NULL
嗯,游标怎么样,不明白... – cMinor