The escape character of MySQL "\"

Source: Internet
Author: User

/

an ASCII 0 (NUL)    characters.

\ n

A new line character.

\ t

A locator character.

\ r

A carriage return character.

\b

A backspace.

\‘

a single quotation mark ("'")    characters.

\  "

a double quotation mark ("" ")    characters.

\\

a backslash ("\")    characters.

\%

a "% "character.    It is used to search for "%" text instances in the body, otherwise "%" herewill be interpreted as a wildcard character.

\_

Select ' Ab\ ' AB ' as a, ' ab\ ' ab ' as B, ' Ab\tab ' as C, ' Ab\bab ' as D, ' Ab\\ab ' as E, ' Ab\\\\ab ' as F, ' Ab\nab ' as G;

If you want to insert binary data into a blob column, the following characters must be represented by an escape sequence:

NUL ASCII 0 .    You should use '/' (a backslash and an ASCII ' 0 ') to represent it.

\ ASCII , backslash.  Use ' \ \ ' to indicate.

' ASCII , single quotation marks.    Use ' \ ' to indicate.

"ASCII 34, double quotes. denoted by ' \ '.

The escape character of MySQL "\"

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.