表名:ZL_Design_Question












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2AskIDint40    所属问卷ID
3QTitlenvarchar20000    问题标题
4QContentnvarchar40000    问题内容(选填)
5QOptionntext160    问题选项(单选|多选|排序)
6QTypenvarchar2000    问题类型
7QFlagnvarchar2000    问题标识,用于类型下再区分(日期|生日|性别)
8Requiredint40    是否必填
9OrderIDint40    排序,从1开始,ASC
10CUserint40    创建用户id
11CDatedatetime83    创建时间

简要说明:

问卷问题表

GO
CREATE TABLE [dbo].[ZL_Design_Question](
[ID] [int] IDENTITY(1,1) NOT NULL,
[AskID] [int] NULL,
[QTitle] [nvarchar](2000) NULL,
[QContent] [nvarchar](4000) NULL,
[QOption] [ntext] NULL,
[QType] [nvarchar](200) NULL,
[QFlag] [nvarchar](200) NULL,
[Required] [int] NULL,
[OrderID] [int] NULL,
[CUser] [int] NULL,
[CDate] [datetime] NULL,
CONSTRAINT [PK_ZL_Design_Question] PRIMARY KEY CLUSTERED
([ID] 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_Design_Question

--注意:将删除整个表

drop table ZL_Design_Question

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

TRUNCATE table ZL_Design_Question