表名:ZL_Survey












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1Surveyidint40  调查问卷ID
2Surveynamenvarchar2550    调查问卷名称
3Descriptiontext160    调查问卷描述
4Createdatedatetime83   getdate创建日期
5Endtimedatetime83   getdate结束日期
6Isopenbit10   1是否启用
7NeedLoginbit10   0是否登录后才能参与问卷调查
8Surtypeint40   1问券调查类型 1-投票 2-问券 3-报名系统
9Iprepeatint40   1IP 限制
10StartTimedatetime83   getdate开始日期
11IsStatusbit10   0是否审核
12IsCheckbit10   0问券调查类型 1-投票 2-问券 3-报名系统
13IsShowint40    0:不显示,1:显示

简要说明:

调查表


GO
CREATE TABLE [dbo].[ZL_Survey](
[Surveyid] [int] IDENTITY(1,1) NOT NULL,
[Surveyname] [nvarchar](255) NOT NULL,
[Description] [text] NULL,
[Createdate] [datetime] NULL CONSTRAINT [DF_ZL_Survey_Createdate]  DEFAULT (getdate()),
[Endtime] [datetime] NULL CONSTRAINT [DF_ZL_Survey_Endtime]  DEFAULT (getdate()),
[Isopen] [bit] NULL CONSTRAINT [DF_ZL_Survey_Isopen]  DEFAULT ((1)),
[NeedLogin] [bit] NULL CONSTRAINT [DF_ZL_Survey_NeedLogin]  DEFAULT ((0)),
[Surtype] [int] NULL CONSTRAINT [DF_ZL_Survey_Surtype]  DEFAULT ((1)),
[Iprepeat] [int] NULL CONSTRAINT [DF_ZL_Survey_Iprepeat]  DEFAULT ((1)),
[StartTime] [datetime] NULL CONSTRAINT [DF_ZL_Survey_StartTime]  DEFAULT (getdate()),
[IsStatus] [bit] NULL CONSTRAINT [DF_ZL_Survey_IsStatus]  DEFAULT ((0)),
[IsCheck] [bit] NULL CONSTRAINT [DF_ZL_Survey_IsCheck]  DEFAULT ((0)),
[IsShow] [int] Null

CONSTRAINT [PK_ZL_Survey] PRIMARY KEY CLUSTERED
(
[Surveyid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

--注意:将清空全表数据

detele from ZL_Survey

--注意:将删除整个表

drop table ZL_Survey

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_Survey