表名:ZL_Result












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Resultvarchar20000    答案
3ResultTimedatetime83    回答时间
4ProblemIDint40    问题ID
5UserIDint40    用户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

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

TRUNCATE table ZL_Result