[homehot] [int] NULL CONSTRAINT [DF__news__homehot__68487DD7] DEFAULT ((0)),其中有这么一句.
CONSTRAINT [DF__news__homehot__68487DD7]
这个是什么??
我本想把一张表导出他的创建脚本,再重新取个名字,建一张结构一样的表.
只是提示这句出错.
CONSTRAINT [DF__news__homehot__68487DD7]
这个是什么??
我本想把一张表导出他的创建脚本,再重新取个名字,建一张结构一样的表.
只是提示这句出错.
默认值约束
CONSTRAINT [DF__news__homehot__68487DD7]
约束名
--复制表结构直接用SQL语句就行了select top 0 * into 新表名 from 旧表名
--或者
select * into 新表名 from 旧表名 wher 1<>1
创建默认值的时候,系统自动生成了一个默认值约束名称:[DF__news__homehot__68487DD7]
[homehot] [int] NULL CONSTRAINT [DF__news__homehot__68487DD7] DEFAULT ((0)),