表名:ZL_AuditingState












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1stateCodeint40   状态码
2stateNamevarchar500    状态名称
3stateTypevarchar500    状态类型(是否是系统的)

简要说明:

审计表

GO
CREATE TABLE [dbo].[ZL_AuditingState](
[stateCode] [int] NOT NULL,
[stateName] [varchar](50) NOT NULL,
[stateType] [varchar](50) NOT NULL,
CONSTRAINT [PK_ZL_AuditingState] PRIMARY KEY CLUSTERED
([stateCode] 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_AuditingState', @level2type=N'COLUMN', @level2name=N'stateName'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'状态类型(是否是系统的)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_AuditingState', @level2type=N'COLUMN', @level2name=N'stateType'
GO
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( -3,N'草稿',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( -1,N'退稿',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( 11,N'初审',N'自定义')
INSERT [ZL_AuditingState] ([stateCode],[stateName],[stateType]) VALUES ( 12,N'二审',N'自定义')

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

detele from ZL_AuditingState

--注意:将删除整个表

drop table ZL_AuditingState

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

TRUNCATE table ZL_AuditingState