序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | SendID | int | 4 | 0 | 是 | 留言者 | ||||
3 | InceptID | int | 4 | 0 | 是 | 被留言者 | ||||
4 | Mcontent | text | 16 | 0 | 是 | 内容 | ||||
5 | Addtime | datetime | 8 | 3 | 是 | 时间 | ||||
6 | RestoreID | int | 4 | 0 | 是 | 回复ID | ||||
7 | State | int | 4 | 0 | 是 | 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
TRUNCATE table ZL_RoomMessage