Dennis Schafthuizen
Member²
In 10g it's possible to use the quote operator q.
For example:
select q'!John's shop!' title from dual;
In SQL*Plus the result is:
TITLE
-----------
John's shop
In PL/SQL Developer 7.0.2.1076 (SQL Window and Command Window) the following error occurs:
ORA-01756: quoted string not properly terminated.
When you use an extra quote it's working fine in PL/SQL Developer.
For example:
select q'!John's shop'!' title from dual;
Result:
TITLE
------------
John's shop'
The error also occurs using PL/SQL. For example:
begin
dbms_output.put_line(q'!John's shop !');
end;
/
For example:
select q'!John's shop!' title from dual;
In SQL*Plus the result is:
TITLE
-----------
John's shop
In PL/SQL Developer 7.0.2.1076 (SQL Window and Command Window) the following error occurs:
ORA-01756: quoted string not properly terminated.
When you use an extra quote it's working fine in PL/SQL Developer.
For example:
select q'!John's shop'!' title from dual;
Result:
TITLE
------------
John's shop'
The error also occurs using PL/SQL. For example:
begin
dbms_output.put_line(q'!John's shop !');
end;
/