Oracle對字符轉(zhuǎn)義的處理 |
發(fā)布時間: 2012/8/24 17:17:51 |
以前總是忘記Oracle單引號轉(zhuǎn)義,為了以后工作方便,現(xiàn)在記錄下來 SQL> select ''''||nvl(sql_id,prev_sql_id)||'''' sql_id , ',' ||nvl(sql_child_number,prev_child_number) sql_child_number from v$session where sid=159; SQL_ID SQL_CHILD_NUMBER select object_name from test where object_name like 'I/_%' escape'/'; 對于其他字符的轉(zhuǎn)義 ,可以利用 Oracle內(nèi)置的escape來轉(zhuǎn) 本文出自:億恩科技【xuefeilisp.com】 |