序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | CourseName | nvarchar | 500 | 0 | 是 | 课程名称 | ||||
3 | CoureseThrun | nvarchar | 50 | 0 | 是 | 课程缩写 | ||||
4 | CoureseCode | nvarchar | 50 | 0 | 是 | 课程代码 | ||||
5 | CoureseCredit | float | 8 | 0 | 是 | 学分 | ||||
6 | CoureseRemark | nvarchar | 1000 | 0 | 是 | 课程简介 | ||||
7 | Hot | int | 4 | 0 | 是 | 是否热门:0为否,1为是 | ||||
8 | CoureseClass | int | 4 | 0 | 是 | 课程分类ID | ||||
9 | AddTime | datetime | 8 | 3 | 是 | 添加时间 | ||||
10 | AddUser | int | 4 | 0 | 是 | 添加用户 |
课程表
GO
CREATE TABLE [dbo].[ZL_Course](
[ID] [int] IDENTITY(1,1) NOT NULL,
[CourseName] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
[CoureseThrun] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[CoureseCode] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[CoureseCredit] [float] NULL,
[CoureseRemark] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NULL,
[Hot] [int] NULL,
[CoureseClass] [int] NULL,
[AddTime] [datetime] NULL,
[AddUser] [int] NULL,
CONSTRAINT [PK_ZL_Course] PRIMARY KEY CLUSTERED
(
[ID] ASC
) ON [PRIMARY]
) 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_Course', @level2type=N'COLUMN',@level2name=N'CourseName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'课程缩写' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'CoureseThrun'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'课程代码' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'CoureseCode'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'学分' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'CoureseCredit'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'课程简介' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'CoureseRemark'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'是否热门:0为否,1为是' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'Hot'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'课程分类ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'CoureseClass'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'AddTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'添加用户' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Course', @level2type=N'COLUMN',@level2name=N'AddUser'
detele from ZL_Course
drop table ZL_Course
TRUNCATE table ZL_Course