Skip to Main Content

SQL & PL/SQL

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!

Missing right parenteses when using substring and DBMS_LOB.SUBSTR

LonelyDBAJun 21 2017 — edited Jun 21 2017

Hi,

Im trying to do this:

SELECT SUBSTR (''SELECT id DBMS_LOB.SUBSTR(cp.record, 3500)

  FROM USER1.CENTRAL_MONEY CM

WHERE ID = '''TYU456GGG''' AND

DBMS_LOB.SUBSTR (cm.record, 3500) like '''%KU%''',32,4);

So, I want to search a CLOB where ID = something and the CLOB contains KU. The query works fine WITHOUT SELECT SUBSTR. Because I want to select characters from position 32 of the DBMS_LOB.SUBSTR.

I get:

ORA-00907 missing right parenthesis

I cant see any missing parenthesis, can you guys?

Regards

LonelyDBA

This post has been answered by cormaco on Jun 21 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2017
Added on Jun 21 2017
6 comments
471 views