📄 select_subject.sql
字号:
Drop procedure Select_Subject
go
Create procedure Select_Subject
--存储过程Select_Subject通过输入参数:专业、类型、难度、选题数目
--从题库中随机选出合乎条件的题目集合
(@Specialty varchar(50),@Style varchar(50),
@Difficulty varchar(50),@Select_Subject_Count smallint)
as
begin
SET ROWCOUNT @Select_Subject_Count
select ID,Style,Difficulty,Content,A_option,B_option,
C_option,D_option,E_option,F_option
from Subject_Table
where (Specialty=@Specialty)and(Style=@Style)
and(Difficulty=@Difficulty)
Order by newid()
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -