我正在尝试运行以下查询:
select * from (select * from customquestionbank where questionid=6 or secondquestionid=6
union select * from customquestionbank where questionid=5 or secondquestionid=5
union select * from customquestionbank where questionid=10 or secondquestionid=10
union select * from customquestionbank where questionid=11 or secondquestionid=11) Tabled
作为这个网站的新手,我还不能发布图片,但结果如下:
questionid -> 5,6 ,10,11
但是,我希望结果以与我上面的选择语句相同的顺序显示。换句话说,questionid=6 先返回,然后是 5,以此类推。