Package Case Statement [message #322122] |
Thu, 22 May 2008 09:52  |
jramya
Messages: 42 Registered: April 2008
|
Member |
|
|
Dear All,
I have created a package with some functionality.
I have a case statement in that as below
INSERT INTO test1(
SELECT connum,(CASE WHEN
(atr.VALUE = '00' OR
atr.VALUE = '01' OR
atr.VALUE = '02' OR
atr.VALUE = '12' ) THEN 'PP_LESS50'
ELSE 'PP_OVER50'
END)VAR1
FROM
[.... Tables..]
)
I seem no error with my case statement but while compiling the
package body I get the following error
PLS-00103: Encountered the symbol "CASE" when expecting one of the following: ( - + mod not null others <an identifier>
TO make more strange it works fine when i run it in sql editor substituting vaiable values.
Can you get me a clue on the issue please...
|
|
|
|
|
|
|
|
|
|
|