表名:ZL_RoomNotify












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2NotifyTitlenvarchar2000    通知标题
3NotifyContextnvarchar10000    通知内容
4AddTimedatetime83    添加时间
5RoomIDint40    班级ID
6UserIDint40    添加用户ID

简要说明:

班级通知表

GO
CREATE TABLE [dbo].[ZL_RoomNotify](
[ID] [int] IDENTITY(1,1) NOT NULL,
[NotifyTitle] [nvarchar](200) NULL,
[NotifyContext] [nvarchar](1000) NULL,
[AddTime] [datetime] NULL,
[RoomID] [int] NULL,
[UserID] [int] NULL,
CONSTRAINT [PK_RoomNotify] 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_RoomNotify', @level2type=N'COLUMN', @level2name=N'NotifyTitle'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'通知内容' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'NotifyContext'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @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_RoomNotify', @level2type=N'COLUMN', @level2name=N'RoomID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加用户ID' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_RoomNotify', @level2type=N'COLUMN', @level2name=N'UserID'


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

detele from ZL_RoomNotify

--注意:将删除整个表

drop table ZL_RoomNotify

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

TRUNCATE table ZL_RoomNotify