I'm trying to check whether a list of items contain specific number in the condition part of a case statement in Oracle 10g. I get
ORA-00936: missing expression error though. I'm trying to do something like the following:
Select case 'some_column_data' when in (1,2,3) then 'do_something' else 'do_something_else' end;
So, is there any way to accomplish what I'm intended to do, or checking whether value is in list iteratively in different
when statements is the only solution?
preguntado el 09 de marzo de 12 a las 13:03