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!

ORA-01756:quoted string not properly terminated

groxyJul 23 2010 — edited Jul 23 2010
Dear experts,

We are working on Oracle 11.2 on Linux 64-bit

I am trying to execute the following sql:

select
'declare begin j varchar2(20) = 1;
end;' column
from dual t

and I getting thefollowing error:

ORA-01756: quoted string not properly terminated

However this works:

select
'declare begin j varchar2(20) = 1'||';'||'
end;' column
from dual t

and this works as well:

select+
'declare begin j varchar2(20) = 1; end;' column
from dual t


What can cause the error. Is there any initialization parameters that need to be set to
make the first SQL working


Thanks

groxy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2010
Added on Jul 23 2010
3 comments
6,250 views