Oracle escape characters

Source: Internet
Author: User
Definition: The escape keyword is often used to make some special characters, such as the wildcard: %, _ escape is the meaning of their original characters. The defined escape characters are usually used, however, you can also use other symbols. Instance: SQLselect * fromt11wherenamelike % _ %; NAME ---------- aa_aaaaSQLselect * fromt

Definition: The escape keyword is often used to escape certain special characters, such as wildcards: '%' and '_' as the meaning of their original characters, the defined escape characters usually use '/', but other symbols can also be used. Instance: SQL select * from t11 where name like '% _ %'; NAME ---------- aa_a aaa SQL select * from t

Definition: The escape keyword is often used to escape certain special characters, such as wildcards: '%' and '_' as their original

The definition of escape characters is usually '/', but other symbols can also be used.

Instance:

SQL> select * from t11 where name like '% _ % ';

NAME
----------
Aa_a
Aaa
SQL> select * from t11 where name like '%/_ %' escape '/';

NAME
----------
Aa_a

NOTE: If '/' is used as the search character, '/' must be used as the escape character, and the same is true for the forward slash.
Select * from wan_test where psid like '% // %' escape '/'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.