文件名称:创建OnlineExamine表-在线考试系统PPT报告
文件大小:564KB
文件格式:PPT
更新时间:2024-05-13 13:35:36
在线考试系统 ppt 实习 报告
(5)、创建OnlineExamine表 CREATE TABLE [dbo].[OnlineExamine]( [ID] [int] IDENTITY(1,1) NOT NULL, [ExamineeID] [int] NULL, [SubjectID] [int] NULL, [StartTime] [datetime] NULL, [EndTime] [datetime] NULL, [Score] [int] NULL, CONSTRAINT [PK_OnlineExamine] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO 6、创建Question表 CREATE TABLE [dbo].[Question]( [ID] [int] IDENTITY(1,1) NOT NULL, [Title] [varchar](2000) NULL, [Score] [int] NULL, [Answer] [char](2) NULL, [SubjectID] [int] NULL, CONSTRAINT [PK_Question] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO