q and use
any convenient delimiter, single or multibyte, or any of the [ ], { }, ( ), or < >
character pairs.
select q'x's'dfsdfx' from dual;
select q'!'s'dfsdf!' from dual;
得到的结果是's'dfsdf
The new quote operator can also be used with the new SQL_TUNE function, which
takes a SQL statement as its argument. For example:
EXECUTE SQL_TUNE –
('select * from emp where name LIKE ''%DBMS_%''', ...)
With the new quote operator, you can rewrite this statement as:
EXECUTE SQL_TUNE –
(q'!select * from emp where name LIKE '%DBMS_%'!')