序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Result | varchar | 2000 | 0 | 是 | 答案 | ||||
3 | ResultTime | datetime | 8 | 3 | 是 | 回答时间 | ||||
4 | ProblemID | int | 4 | 0 | 是 | 问题ID | ||||
5 | UserID | int | 4 | 0 | 是 | 用户ID |
结果输出表
GO
CREATE TABLE [dbo].[ZL_Result](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Result] [varchar](2000) NULL,
[ResultTime] [datetime] NULL,
[ProblemID] [int] NULL,
[UserID] [int] NULL,
CONSTRAINT [PK_ZL_Result] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'答案' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Result', @level2type=N'COLUMN', @level2name=N'Result'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回答时间' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Result', @level2type=N'COLUMN', @level2name=N'ResultTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Result', @level2type=N'COLUMN', @level2name=N'ProblemID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Result', @level2type=N'COLUMN', @level2name=N'UserID'
detele from ZL_Result
drop table ZL_Result
TRUNCATE table ZL_Result