序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | k_id | int | 4 | 0 | 是 | 否 | 主键ID | |||
2 | k_name | nvarchar | 200 | 0 | 否 | 知识点 | ||||
3 | k_Class_id | int | 4 | 0 | 否 | 所属分类ID | ||||
4 | k_OrderBy | int | 4 | 0 | 是 | 排序 | ||||
5 | Status | int | 4 | 0 | 是 | 状态 | ||||
6 | Grade | int | 4 | 0 | 是 | 年级 | ||||
7 | IsSys | int | 4 | 0 | 是 | 是否为系统知识点 | ||||
8 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
9 | CUser | int | 4 | 0 | 是 | 创建人 | ||||
10 | Pid | int | 4 | 0 | 是 | 父节点ID |
问答回复记录表
GO
CREATE TABLE [dbo].[ZL_Questions_Knowledge](
[k_id] [int] IDENTITY(1,1) NOT NULL,
[k_name] [nvarchar](200) NOT NULL,
[k_Class_id] [int] NOT NULL,
[k_OrderBy] [int] NULL,
[Status] [int] NULL,
[Grade] [int] NULL,
[IsSys] [int] NULL,
[CDate] [datetime] NULL,
[CUser] [int] NULL,
[Pid] [int] NULL
) 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_Questions_Knowledge', @level2type=N'COLUMN',@level2name=N'k_name'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'所属分类ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Questions_Knowledge', @level2type=N'COLUMN',@level2name=N'k_Class_id'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Questions_Knowledge', @level2type=N'COLUMN',@level2name=N'k_OrderBy'
SET IDENTITY_INSERT [ZL_Questions_Knowledge] ON
INSERT [ZL_Questions_Knowledge] ( [k_id] , [k_name] , [k_Class_id] , [k_OrderBy] ) VALUES ( 1 , '二、欧姆定律及其应用' , 2 , 0 )
INSERT [ZL_Questions_Knowledge] ( [k_id] , [k_name] , [k_Class_id] , [k_OrderBy] ) VALUES ( 2 , '四、电与热' , 1 , 0 )
SET IDENTITY_INSERT [ZL_Questions_Knowledge] OFF
detele from ZL_Questions_Knowledge
drop table ZL_Questions_Knowledge
TRUNCATE table ZL_Questions_Knowledge