How to Escape Characters in Oracle PL/SQL Queries 어떻게 오라클은 PL / SQL 쿼리에 등장하는 인물을 탈출하는

Oracle databases reserve some special characters with specific meaning and purpose within Oracle environment. 오라클은 오라클 데이터베이스의 구체적인 의미와 목적을 가진 환경 내에서 일부 특수 문자를 보유합니다. These reserved characters include _ (underscore) wild card character which used to match exactly one character, % (percentage) which used to match zero or more occurrences of any characters and ‘ (apostrophe or quotation mark) which used to mark the value supplied. 이러한 예약 문자를 포함 _ (밑줄), '(또는 인용 부호)에 아포 스트로피 가치를 표시하는 데 사용되는 모든 문자의 0 개 이상의 사건을 일치시키는 데 사용 (비율) % 정확히 하나의 문자와 일치하는 데 사용되는 와일드 카드 문자를 공급했다. These special characters will not be interpreted literally when building SQL query in Oracle, and may caused error in results returned especially when performing string search with LIKE keyword. 이러한 특수 문자 그대로 오라클에서 SQL 쿼리를 구축했을 때, 그리고 해석되지 않습니다 결과에 오류가 발생있습니다 문자열 검색을 수행할 때 특히 같은 키워드로 돌아왔다. To use these characters so that Oracle can interpret them literally as a part of string value instead of preset mean, escape character has to be assigned. 그렇게하는 대신 오라클은 말 그대로 미리 문자열 값의 일부로 해석할 수있는 말은 이러한 문자를 사용하려면, 문자 탈출을 할당할 수있다.

Oracle allows the assignment of special escape characters to the reserved characters in Oracle can be escaped to normal characters that is interpreted literally, by using ESCAPE keyword. 오라클은 오라클에 예약 문자를 특수 탈출 자의 임무는 일반 문자 그대로, 탈출의 키워드를 사용하여 해석됩니다 탈출이 될 수있습니다.

For example, to select the name of guests with _ (underscore) in it, use the following statement: 예를 들어, 다음 문을 사용하여 손님의 이름이 _ 그것에서는 (밑줄)을 선택합니다 :

SELECT guest_name FROM guest_table WHERE name LIKE ‘%\_%’ ESCAPE ‘\’; 선택 guest_name 같은 곳에서 '% 이름 guest_table \ _ %'ESCAPE '\';

Without specifying the \ (backslash) as escape clause, the query will return all guest names, making the unwanted results problem. \ (역슬래시 지정) 탈출 조항으로하지 않고, 쿼리, 원치 않는 결과가 문제를 만들고 모든 손님 이름을 반환한다.

The above syntax will not work on ‘ (quote). 위의 구문에 '(따옴표)가 작동하지 않습니다. To escape this quotation mark and to display the quote literally in string, insert another quote (total 2 quotes) for every quote that want to be displayed. 이 인용 부호 문자열에서 탈출하려면 말 그대로 인용 표시를, 또 다른 문구가 표시되고 싶은 모든 견적에 대한 (전체 2 따옴표 제외)를 삽입합니다. For example: 예를 들면 :

SELECT ‘This will display line with quote’’s word.’ FROM temp_table; '이 quote'의 단어와 함께 표시됩니다 라인'을 선택하십시오. temp_table까지;
SELECT ‘This will display ””double quoted”” word.’ FROM temp_table; '이 표시됩니다 ""선택을 두 번 ""단어가 전했다.'temp_table까지;

will return the following respectively: 다음은 각각 반환됩니다 :

This will display line with quote’s word. 이 문구의 단어로 라인이 표시됩니다.
This will display ”double quoted” word. 이 "더블"단어를 인용 표시됩니다.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 :이 기계는 "보증도없이있는 그대로"제공됩니다 페이지를 번역했다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 을 참조하시기 바랍니다 original English article 원래 영어 문서 whenever possible. 언제든 가능합니다.

Share and contribute or get technical support and help at 공유와 기여하거나 기술 지원과에 도움이 My Digital Life Forums 내 디지털 생활 포럼 .



3 Responses to “How to Escape Characters in Oracle PL/SQL Queries” 3 답변은 "오라클은 PL / SQL 쿼리에"문자가 탈출을 위해

  1. Escape Character in MySql - Discussweb IT Community - Web Development, Software Programming, SEO, Quality Assurance, 3D, Web Hosting and more... MySQL에 이스케이프 문자 - Discussweb의 IT 커뮤니티 - 웹 개발, 소프트웨어 프로그래밍, 검색 엔진 최적화, 품질 보증, 3 차원, 웹 호스팅 및 더 ...
    July 13th, 2007 19:27 2007년 7월 13일 19:27
    1

    [...] about Escape Characters. 이스케이프 문자 [...]. Escape Characters Oracle Wildcards Wildcard Characters Escape Character How to Escape Characters in Oracle PL/SQL Queries 이스케이프 문자는 오라클의 와일드 와일드 카드 문자를 이스케이프 문자 어떻게 오라클은 PL / SQL 쿼리에 등장하는 인물을 탈출하는

  2. sam33
    September 17th, 2008 20:44 9 월 17 일 2008 20:44
    2

    salut j’ai le mm pb ! 건배 j'ai 르 mm PB들의 전언이다! si je fait une recherche sur le ‘_’ seul sa marche mais si v je chercher des mots avec le ‘_’ 부천시 이인제 운명이 일개 공들인 쉬르 르와 '_'는 sa 마르쉐, 부천시 상세 seul 일 vs 이인제 chercher 르 데스 mots 슨에게 물어봐 '_'
    exmple: exmple :
    SELECT * from Test WHERE nom LIKE ‘1%\_%test’ ESCAPE ‘\’; * '1 % 테스트 이름처럼 어디에서 선택 \ _ % 테스트 'ESCAPE'\ ';
    sa me renvoie : SA가 날 renvoie :
    1_test
    10_test ?? 10_test??
    or que normalement sa devait rendre que: 나 알어? normalement에 sa devait rendre 일하러 :
    1_test ?? 1_test??
    je comprend pas 이인제 comprend 싶어서

  3. Charles Asbornsen 찰스 Asbornsen
    September 26th, 2008 00:28 2008년 9월 26일 0시 28분
    3

    Thank you very much - I’ma SQL Server gent with an Oracle source and I was going nuts! 대단히 감사합니다 - 저는 신사 오라클 SQL 서버 소스와 함께 견과류를하려고 했어! :)

Leave a Reply 회신을 남겨주세요

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 이러한 태그 : title="">은 <a href="" 사용할 수있습니다 <abbr title=""> <acronym title="">의 <b> <blockquote cite=""> <cite>의 <code> <밤 날짜 = "">은 <em>가 <i> <q cite=""> <strike>의 <strong>

Subscribe without commenting 코멘트를 구독하지 않고


Custom Search

New Articles 새 문서

Incoming Search Terms for the Article 에 대한 검색 약관받는 제

oracle escape character 오라클은 이스케이프 문자 - - oracle sql escape '오라클 SQL 탈출 - - pl sql escape character 와줘은 SQL 이스케이프 문자 - - Oracle escape characters 오라클은 이스케이프 문자 - - oracle sql escape character '오라클 SQL 이스케이프 문자 - - oracle quote escape 오라클 인용 탈출 - - PLSQL escape character PLSQL 이스케이프 문자 - - escape characters oracle 이스케이프 문자는 오라클 - - escape character in sql이스케이프 문자는 SQL - - SQL escape & 는 SQL 탈출 & - - sql escape 는 SQL 탈출 - - special character in oracle 오라클에 특수 문자 - - escape character in oracle 오라클에 이스케이프 문자 - - oracle, sql, escape character 오라클은 SQL, 문자 이스케이프 - - oracle escape & 오라클 탈출 & - - Oracle escape ' 오라클의 탈출 ' - - oralce import excape char oralce 수입 excape 문자 - - pl/sql find percent character in clause 문자는 SQL 조항 % / 찾아 와줘 - - SQL escape character 은 SQL 이스케이프 문자 - - escape SQL 는 SQL 탈출 - - escape character oracle 오라클 문자 이스케이프 - - escape character for oracle pl/sql 오라클 와줘에 대한 문자 / SQL을 탈출 - - oracle escaping 오라클 탈출 - - oracle sql & escape '오라클 SQL & 탈출 - - oracle escape 오라클 탈출 - - pl/sql escape string PL / SQL을 이스케이프 문자열 - - pl sql escape quote 와줘은 SQL 탈출 인용 - - plsql escape plsql 탈출 - - special character in search string SQL oracle 검색 문자열은 SQL 오라클에 특수 문자 - - sql character escape 캐릭터는 SQL 탈출 - - escape characters in oracle 오라클에 이스케이프 문자 - - find special character in string PL/SQL 문자열에서 특수 문자를 찾을은 PL / SQL을 - - oracle insert error with special characteres 특별 characteres와 오라클 삽입 오류 - - oracle sql escape & character '오라클 SQL 탈출 & 캐릭터 - - PL SQL ESCAPE CHAR 이스케이프 문자는 SQL은 PL - - select oracle escape 선택 Oracle 탈출 - - sql escape characters 은 SQL 이스케이프 문자 - - character oracle 캐릭터 오라클 - - character escaping poland 문자 이스케이프 폴란드 - - display characters ¿ instead of ' in oracle 표시 문자가 아닌 '에서 오라클은 ¿ - - display special characters+oracle database 특수 문자 디스플레이 + 오라클 데이터베이스 - - escape apostrophes oracle 아포 스트로피 탈출 오라클 - - escape characters used in Inserts in Oracle 10g 오라클 10g에서 사용되는 이스케이프 문자를 삽입 - - escape sql wild character 야생의 SQL 문자 이스케이프 - - escape+apostrophe+oracle 탈출 + 아포 스트로피 + 오라클 - - escape sql entry 는 SQL 항목을 탈출 - - escape character for quote in sql 에서 인용에 대한 이스케이프 문자는 SQL - - escape '/' character in sql in oracle 탈출 '/'오라클 SQL에 문자 - - escape sequences in oracle 오라클에서 이스케이프 시퀀스 - - escaping special character + oracle 특수 문자 이스케이프 + 오라클 - -