Sql 复合条件内格从句
我怎么写,举个例子Sql 复合条件内格从句,sql,oracle,conditional-statements,Sql,Oracle,Conditional Statements,我怎么写,举个例子 select attendee, begindate case evaluation when 1 then 'bad' when 2 then 'mediocre' when 3 then 'ok' when 4 then 'good' when 5 then 'excellent' else 'not filled in' end from registrations where course = 'S02' 复合条件,如
select attendee, begindate
case evaluation
when 1 then 'bad'
when 2 then 'mediocre'
when 3 then 'ok'
when 4 then 'good'
when 5 then 'excellent'
else 'not filled in'
end
from registrations
where course = 'S02'
复合条件,如当1[和]其他“then”值时的
应该使用哪种运算符来代替[和]
谢谢 建议您以不同的方式构建您的案例:
case
when evaluation in (1,2) then 'bad'
when evaluation = 3 then 'ok'
when evaluation = 4 then 'good'
when evaluation = 5 then 'excellent'
else 'not filled in'
end
建议您以不同的方式构建您的案例:
case
when evaluation in (1,2) then 'bad'
when evaluation = 3 then 'ok'
when evaluation = 4 then 'good'
when evaluation = 5 then 'excellent'
else 'not filled in'
end
谢谢另外我发现了一篇好文章,谢谢!此外,我还发现了一篇好文章