摘要:
--创建新表 testTable1----字段Id int类型 主键自增 非空,--字段name nvarchar类型(50)长度 可以为空,--字段age int类型 非空 默认值0 create table testTable1 ( Id int not null primary key identity(1,1), name nvarchar(50) null, age int not null default 0 ) --初始化table还原主键Id-- truncate table testTable1 --根据旧表创建新表--select * into newtable from 阅读全文
posted @ 2013-08-15 18:30
无缺~
阅读(724)
评论(0)
推荐(0)
浙公网安备 33010602011771号