我有一个SQL语句,有一个CASE从SELECT,我只是无法正确.你们能告诉我一个例子CASE,说明案件的条件是什么,结果来自案件.例如:
Select xxx, yyy
case : desc case when bbb then 'blackberry';
when sss then 'samsung';
end
from (select ???? .....
Run Code Online (Sandbox Code Playgroud)
结果显示
name age handphone
xxx1 yyy1 blackberry
xxx2 yyy2 blackberry
Run Code Online (Sandbox Code Playgroud)