How to Escape Characters in Oracle PL/SQL Queries कैसे Oracle पी एल / SQL प्रश्न में वर्ण बचने के लिए

Oracle databases reserve some special characters with specific meaning and purpose within Oracle environment. Oracle डेटाबेस विशिष्ट अर्थ और Oracle वातावरण में उद्देश्य के साथ कुछ विशेष अक्षर सुरक्षित रखते हैं. 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. इन आरक्षित अक्षर शामिल _ (जांच) वाइल्ड कार्ड चरित्र है जो वास्तव में एक चरित्र से मेल,% (प्रतिशत) है जो किसी भी अक्षर के शून्य या अधिक घटनाओं मैच 'और' apostrophe (या उद्धरण चिह्न) जो मूल्य चिह्न इस्तेमाल की आपूर्ति करती थी. 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. इन विशेष अक्षर नहीं शाब्दिक व्याख्या जब Oracle में एसक्यूएल क्वेरी निर्माण होगा, और परिणाम में त्रुटि हुई हो तो लौट खासकर जब तरह खोजशब्द के साथ स्ट्रिंग खोज प्रदर्शन. 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 के बजाय उन्हें पूर्व निर्धारित की स्ट्रिंग मूल्य के एक भाग के रूप में शाब्दिक व्याख्या कर सकते हैं मतलब है, चरित्र से बचने को सौंपा जाना चाहिए.

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. Oracle Oracle में आरक्षित अक्षर के लिए विशेष बच अक्षर का काम सामान्य अक्षर है कि शाब्दिक व्याख्या, बच खोजशब्द का उपयोग कर रहा है बच सकता है की अनुमति देता है.

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 कहां 'की तरह% नाम \ _'% बच '\';

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.' का चयन करें 'यह है quote' शब्द के अनुरूप प्रदर्शन करेंगे. FROM temp_table; 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 : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.


3 Responses to “How to Escape Characters in Oracle PL/SQL Queries” 3 जवाब "कैसे Oracle पी एल / SQL प्रश्न में करने के लिए वर्ण एस्केप"

  1. Charles Asbornsen चार्ल्स Asbornsen
    September 26th, 2008 00:28 26 सितम्बर 2008 00:28
    3 3

    Thank you very much – I'ma SQL Server gent with an Oracle source and I was going nuts! बहुत बहुत एक Oracle स्रोत के साथ - I'ma एसक्यूएल सर्वर सज्जन का शुक्र है और मैं पागल हो रहा था! :)

  2. sam33 sam33
    September 17th, 2008 20:44 17, 2008 20:44 सितम्बर
    2 2

    salut j'ai le mm pb ! salut j'ai le मिमी पंजाब! si je fait une recherche sur le '_' seul sa marche mais si v je chercher des mots avec le '_' सुर जेई संपन्न une सी सभ्य ले '_ सी seul सा Marche mais v जेई chercher des mots avec le' _ '
    exmple: exmple:
    SELECT * from Test WHERE nom LIKE '1%\_%test' ESCAPE '\'; का चयन करें टेस्ट कहां nom तरह से '1 *% \ _% 'परीक्षण से बचने' \ ';
    sa me renvoie : सा मुझे renvoie:
    1_test 1_test
    10_test ?? 10_test?
    or que normalement sa devait rendre que: या que normalement सा devait rendre que:
    1_test ?? 1_test?
    je comprend pas जेई comprend सहूलियत

  3. Escape Character in MySql - Discussweb IT Community - Web Development, Software Programming, SEO, Quality Assurance, 3D, Web Hosting and more... MySql में एस्केप Character - आईटी Discussweb समुदाय - वेब विकास, सॉफ्टवेयर प्रोग्रामिंग, एसईओ, गुणवत्ता आश्वासन, 3 डी, वेब होस्टिंग और अधिक ...
    July 13th, 2007 19:27 13 जुलाई 2007 19:27
    1 1

    [...] about Escape Characters. [...] एस्केप वर्ण के बारे में. Escape Characters Oracle Wildcards Wildcard Characters Escape Character How to Escape Characters in Oracle PL/SQL Queries बच वर्ण Oracle वाइल्डकार्ड वाइल्डकार्ड वर्ण एस्केप Character कैसे Oracle पी एल / 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> आप इन टैग्स: <a href="" उपयोग title=""> <abbr title=""> <acronym कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <डेल DateTime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. टिप्पणी की सुविधा है विकलांग गया है की सदस्यता लें. To receive notification of latest comments posted, subscribe to सदस्यता के लिए नई टिप्पणियों की सूचना प्राप्त पोस्ट किया है, My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
Custom Search

New Articles नए लेख

Incoming Search Terms for the Article के लिए खोजें शर्तें आने अनुच्छेद

pl sql escape character pl एसक्यूएल भागने चरित्र - -- escape character in oracle Oracle में चरित्र बच - -- oracle escape character Oracle भागने चरित्र - -- oracle escape & Oracle और बच - -- oracle escape Oracle बच - -- pl sql & character pl एसक्यूएल और चरित्र - -- SQL escape & एसक्यूएल और बच - -- escape pl sql pl एसक्यूएल बच - -- escape oracle Oracle बच - -- escape character for sql & और SQL के लिए चरित्र बच - -- oracle sql escape character Oracle SQL भागने चरित्र - -- oracle sql special characters Oracle SQL विशेष वर्ण - -- oracle sql escape Oracle SQL बच - -- oracle scape character Oracle चरित्र भगदड़ - -- oracle escape apostrophe Oracle बच apostrophe - -- pl sql like underscore जांचना जैसे pl एसक्यूएल - -- escape in oracle Oracle में बच - -- escape character oracle चरित्र Oracle बच - -- escape , in pl/sql string बच, pl में / SQL स्ट्रिंग - -- how to define escape character in pl/sql कैसे pl में चरित्र बच / एसक्यूएल को परिभाषित करने के लिए - -- oracle caracter escape Oracle caracter बच - -- oracle sql escape apostrophe Oracle SQL बच apostrophe - -- oracle sql escape & Oracle SQL और बच - -- oracle escape sequence Oracle बच अनुक्रम - -- oracle sql & character Oracle SQL और चरित्र - -- oracle escape character underscore Oracle भागने चरित्र जांच - -- pl/sql mask string pl / SQL मुखौटा स्ट्रिंग - -- pl sql escape & pl एसक्यूएल और बच - -- pl sql escape pl एसक्यूएल बच - -- sql oracle character ' SQL Oracle 'चरित्र - -- sql escape & character SQL बचने और चरित्र - -- ¿ character in oracle Oracle में ¿चरित्र - -- PL/SQL escape पी एल / एसक्यूएल बच - -- caracter scape oracle caracter Oracle भगदड़ - -- caractere insertion data pl sql oracle escape characters caractere डेटा प्रविष्टि pl SQL Oracle बच अक्षर - -- character & sql oracle चरित्र और SQL Oracle - -- escape character in oracle sql Oracle में चरित्र एसक्यूएल बच - -- escaping double quotes in sql oracle SQL Oracle में दोहरे उद्धरण बचने - -- escape keyword oracle pl sql कीवर्ड Oracle pl एसक्यूएल बच - -- escape symbol pl sql प्रतीक pl एसक्यूएल बच - -- escape special characters in pl sql pl एसक्यूएल में विशेष वर्ण से बच - -- escaping special characters in Oracle sql Oracle में विशेष वर्ण एसक्यूएल बचने - -- escape string in PL/SQL पी एल में स्ट्रिंग बच / एसक्यूएल - -- escape charaters in plsql में भाग charaters plsql - -- escape oracle string Oracle स्ट्रिंग बच - -- escaping & in sql बचने और SQL में - -- escape character @ oracle Oracle @ चरित्र बच - -- escaping asterisk in pl-sql में asterisk बचने pl-SQL - -- escape for & in pl/sql के लिए और pl में बच / SQL - -- escape character for & in sql के लिए और SQL में चरित्र बच - --