【正文】
int not null,constraint PK_course_styles primary key (cid,sid))。試卷列表id,name 考試時(shí)間,課程代號,考試與否{0 練習(xí),1 考試},試卷類型,考試方式{0 傳統(tǒng),1在線},審核,審核人ID,考試與否{0 未考,1 已考}create table testpaper_list(paper_id int not null,paper_name varchar(50) not null,paper_time datetime not null,cid varchar(20) not null,test int not null,paper_styles varchar(1),testway int,audit int not null,auditteacher varchar(20) not null,sysstate nt,constraint PK_testpaper_list primary key (paper_id))。參加考試學(xué)生表試卷Id 學(xué)號{0 未考,1 已考,2 作弊}create table paper_students(paper_id int not null,stu_id varchar(20) not null,stu_state int,constraint PK_paper_students primary key (paper_id,stu_id))。題目表id 題目內(nèi)容課程id 題型id 章節(jié)關(guān)鍵詞難度添加時(shí)間添加人審核審核人create table questions(qid int not null,content text not null,cid varchar(20) not null,sid varchar(2) not null,chapter int not null,point varchar(50),qlevel int not null,add_time datetime not null,add_user varchar(20) not null,auditint not null,auditteacher varchar(20)constraint PK_questions primary key (qid))。表31 QuestionPaper類方法及說明方法名稱功能說明方法名稱功能說明AddQuestion向試卷添加題目GetQID獲取隨即問題號,私有方法Check評閱試卷GetQuestion獲取題目內(nèi)容Create創(chuàng)建試卷GetQuestionID獲取問題編號DelQuestion刪除試卷中的一個(gè)題目GetType獲取試題類型GetChoice獲取選擇題的各選項(xiàng)GetUserAnswer獲取用戶答案GetDBRS獲取題庫數(shù)據(jù)集,私有方法ReportToFile輸出試卷到文件GetQAnswer獲取問題參考答案SetAnswer回答試卷GetQSerial獲取第n條試題的編號四.?dāng)?shù)據(jù)庫表結(jié)構(gòu)的SQL建表語句用戶表id 密碼 權(quán)限 科室create table users (