Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

30EA .. ORA-00906: missing left parenthesis when migrating procedure

Adamc-OracleMar 29 2011
SYBASE ...

DECLARE insert_cur CURSOR FOR
SELECT acct_type,acct_no FROM ln_acct where
(@LoanTypes in ('ALL','*') or charindex(','+rtrim(ln_acct.acct_type)+',' , ','+@LoanTypes+',') > 0) AND
(@LoanClasses in ('ALL','*') or charindex(','+rtrim(convert(varchar(10),ln_acct.class_code))+',' , ','+@LoanClasses+',') > 0)


is converted to

CURSOR insert_cur
IS SELECT acct_type ,
acct_no
FROM ln_acct
WHERE ( v_LoanTypes IN ( 'ALL','*' )
OR INSTR(',' || v_LoanTypes || ',', ',' || RTRIM(acct_type) || ',') > 0 )
AND ( v_LoanClasses IN ( 'ALL','*' )
OR INSTR(',' || v_LoanClasses || ',', ',' || RTRIM(CAST(class_code AS VARCHAR2)) || ',') > 0 );

where the translated IN clause in line AND ( v_LoanClasses IN ( 'ALL','*' ) gives the error
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2011
Added on Mar 29 2011
0 comments
244 views