模拟考试系统如何将一张试卷存入到数据库中
------解决方案--------------------
定义两张表,随即抽取题目组合成试卷
- SQL code
create table shiti -- 试题( id int, content nvarchar(max), primary key ( id ))create table daan --答案( [sid] int, --试题ID id char(1), -- 选项 flag char(1), -- 是否为正确答案 primary key ( [sid], id ))