我想选择 *,而不必输入所有单独的列,但我还想包含一个带有 case 语句的自定义列。我尝试了以下方法:
select *, (case when PRI_VAL = 1 then 'High'
when PRI_VAL = 2 then 'Med'
when PRI_VAL = 3 then 'Low'
end) as PRIORITY
from MYTABLE;
但它抱怨说
ORA-00923: FROM keyword not found where expected