序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | Aid | int | 4 | 0 | 是 | 是 | 否 | 答案ID | ||
2 | Surveyid | int | 4 | 0 | 否 | 问卷ID | ||||
3 | Qid | int | 4 | 0 | 否 | 问题ID | ||||
4 | Answercontent | nvarchar | 1000 | 0 | 否 | 答案内容 | ||||
5 | Userid | int | 4 | 0 | 是 | |||||
6 | Submitdate | datetime | 8 | 3 | 是 | 提交答案时间 | ||||
7 | Submitip | varchar | 50 | 0 | 是 | 提交的IP地址 | ||||
8 | AnswerScore | int | 4 | 0 | 是 | 提交答案得分 |
回复信息表
GO
CREATE TABLE [dbo].[ZL_Answer](
[Aid] [int] IDENTITY(1,1) NOT NULL,
[Surveyid] [int] NOT NULL,
[Qid] [int] NOT NULL,
[Answercontent] [nvarchar](1000) NOT NULL,
[Userid] [int] NULL,
[Submitdate] [datetime] NULL,
[Submitip] [varchar](50) NULL,
[AnswerScore] [int] Null,
CONSTRAINT [PK_ZL_Answer] PRIMARY KEY CLUSTERED
(
[Aid] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ZL_Answer_Recode](
[Rid] [int] IDENTITY(1,1) NOT NULL,
[Sid] [int] NOT NULL,
[Userid] [int] NOT NULL,
[Submitip] [varchar](50) ,
[Submitdate] [datetime] NULL CONSTRAINT [DF_ZL_Answer_Recode_Submitdate] DEFAULT (getdate()),
[Status] [int] NOT NULL CONSTRAINT [DF_ZL_ZL_Answer_Recode_Status] DEFAULT (0)
CONSTRAINT [PK_ZL_ANSWER_RECODE] PRIMARY KEY CLUSTERED
([Rid] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
detele from ZL_Answer
drop table ZL_Answer
TRUNCATE table ZL_Answer