I am new to Oracle with PL SQL since I am a SQL Server guy. The table has a long column with text greater than 4000 characters. I am trying to do a select test to find the record and got an SQL Developer response of string literal too long, use bind variable
I looked up some posting and tried the following
declare
tempCLOB CLOB;
old_clob_content CLOB:= 'very long text';
begin
select ID INTO tempCLOB
from database.table
where dbms_lob.compare(CLOB_FIELD, old_clob_content) = 0;
end;
When I run it, I get the following error
ORA-06550 string literal too long
With SQL Server, I did not need to add the INTO, just confused with the error statement.
Thanks