表名:ZL_IServer












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1QuestionIdint40  问题编号
2UserIdint40    发表问题用户编号
3Titlenvarchar1000    标题
4Contentntext160    内容
5Priorityvarchar500    优先级
6Typevarchar500    类型
7ReadCountint40   0已读次数
8SubTimedatetime83    提交时间
9Statevarchar500    状态
10SolveTimedatetime83    解决时间
11Pathvarchar10000    附件路径
12Rootvarchar500    问题来源
13RootInfovarchar500    来源附件信息
14RequestTimedatetime83    希望解决时间
15OrderTypeint40   0订单ID(0-非订单)
16Remindnvarchar5000     
17CCUsernvarchar40000    抄送人
18UserNamenvarchar1000    用户名称

简要说明:

有问必答记录表

GO
CREATE TABLE [dbo].[ZL_IServer](
[QuestionId] [int] IDENTITY(1,1) NOT NULL,
[UserId] [int] NOT NULL,
[UserName] [nvarchar](100) NULL,
[Title] [nvarchar](100) NULL,
[Content] [ntext] NULL,
[Priority] [varchar](50) NULL,
[Type] [varchar](50) NULL,
[ReadCount] [int] NULL,
[SubTime] [datetime] NULL,
[State] [varchar](50) NULL,
[SolveTime] [datetime] NULL,
[Path] [varchar](1000) NULL,
[Root] [varchar](50) NULL,
[RootInfo] [varchar](50) NULL,
[RequestTime] [datetime] NOT NULL,
[OrderType] [int] NULL,
[Remind] [nvarchar](500) NOT NULL,
[CCUser] [nvarchar](4000) NULL,
CONSTRAINT [PK_ZL_IServer] PRIMARY KEY CLUSTERED
([QuestionId] 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]

GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'问题编号' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'QuestionId'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'发表问题用户编号' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'UserId'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'标题' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Title'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'内容' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Content'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'优先级' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Priority'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'类型' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Type'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'已读次数' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'ReadCount'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'提交时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'SubTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'状态' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'State'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'解决时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'SolveTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'附件路径' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Path'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'问题来源' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'Root'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'来源附件信息' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'RootInfo'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'希望解决时间' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IServer', @level2type=N'COLUMN', @level2name=N'RequestTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'订单ID(0-非订单)' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_IServer', @level2type=N'COLUMN',@level2name=N'OrderType'

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

detele from ZL_IServer

--注意:将删除整个表

drop table ZL_IServer

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

TRUNCATE table ZL_IServer