表名:ZL_RoomMessage












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2SendIDint40    留言者
3InceptIDint40    被留言者
4Mcontenttext160    内容
5Addtimedatetime83    时间
6RestoreIDint40    回复ID
7Stateint40    0为正常 1为删除

简要说明:

班级留言表

GO
CREATE TABLE [dbo].[ZL_RoomMessage](
[ID] [int] IDENTITY(1,1) NOT NULL,
[SendID] [int] NULL,
[InceptID] [int] NULL,
[Mcontent] [text] NULL,
[Addtime] [datetime] NULL,
[RestoreID] [int] NULL,
[State] [int] NULL,
CONSTRAINT [PK_ZL_RoomMessage] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_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_RoomMessage', @level2type=N'COLUMN', @level2name=N'SendID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'被留言者' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomMessage', @level2type=N'COLUMN', @level2name=N'InceptID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'内容' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomMessage', @level2type=N'COLUMN', @level2name=N'Mcontent'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'时间' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomMessage', @level2type=N'COLUMN', @level2name=N'Addtime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'回复ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomMessage', @level2type=N'COLUMN', @level2name=N'RestoreID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'0为正常 1为删除' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomMessage', @level2type=N'COLUMN', @level2name=N'State'

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

detele from ZL_RoomMessage

--注意:将删除整个表

drop table ZL_RoomMessage

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

TRUNCATE table ZL_RoomMessage