Writing a plSQL script in oracle . DM_CATEGORY column's data type is varchar . othertext column's datatype is CLOB, which return a comma separated data. e.g. FGOH,functional-parameter,disability-parameter,cognitive-parameter
Script
where DM_CATEGORY in (select othertext from Preslists where tablename='tablename' and functionname='functionname' )
How to pass this data in this in cluse? getting this below error with this script ORA-00932: inconsistent datatypes: expected - got CLOB 00932. 00000 - "inconsistent datatypes: expected %s got %s"
Writing a plSQL script in oracle . DM_CATEGORY column's data type is varchar . othertext column's datatype is CLOB, which return a comma separated data. e.g. FGOH,functional-parameter,disability-parameter,cognitive-parameter
Script
where DM_CATEGORY in (select othertext from Preslists where tablename='tablename' and functionname='functionname' )
How to pass this data in this in cluse? getting this below error with this script ORA-00932: inconsistent datatypes: expected - got CLOB 00932. 00000 - "inconsistent datatypes: expected %s got %s"
Try to convert the CLOB to varchar: Script: where to_char(DM_CATEGORY) in (select othertext from Preslists where tablename='tablename' and functionname='functionname' )
or: dbms_lob.substr(DM_CATEGORY, 4000, 1)
while "4000" is the Varchar defined size.