【发布时间】:2015-07-24 15:01:09
【问题描述】:
您好,请更正我的问题
select * from table S1
WHERE S1.stu ='12345'
AND S1.sem = (Select Case When col2 > col4 Then col2 Else col4 End From table2)
And S1.met1 in (case when (S1.sem = 1) then ('1', 'D', 'F' )
when (S1.sem = 2) then ('1', '5', '7', )
when (S1.sem = 3) then ('1', 'D', 'F' )
else s1.sem end);
应该使用大小写,因为它与表联合。 我得到了
错误:缺少关键字
对于这个查询
【问题讨论】:
-
您的预期结果是什么?或者 wat 是查询中的错误..您需要向您的问题添加更多信息