📜  oracle 简单引号 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.496000             🧑  作者: Mango

代码示例1
SELECT 'Simple quote''' FROM dual;        -- Simple quote'
SELECT '''Simple quote''' FROM dual;    -- 'Simple quote'
SELECT q'['Simple quote']' from dual;    -- 'Simple quote'  q'[my_string]'

s_date VARCHAR2(10 BYTE) := '12/02/2021';
EXECUTE IMMEDIATE 'SELECT to_date(''' || s_date || ''', ''DD/MM/YYYY'') FROM dual';