Java Escape character

Source: Internet
Author: User
Tags control characters mysql import

Special characters: 3

\ "denotes double quotation marks

\ ' denotes single quotation marks

\ \ table backslash \

Control characters: 5 x

\ ' Single quote character

\ \ backslash Character

\ r Enter

\ nthe line break

\f Paper Change page

\ t transverse jump lattice

\b Backspace (own estimate is a space)

Note: In Java, if there are spaces in the file path, you must use double quotation marks to hang up. For example, the MySQL import script xx < yy.sql This yy.sql before there are spaces, so yy.sql must be used in double quotation marks to hang up.

and the bat command below:

\ "" + mergescripts. "\\"\ " -y-o \""+ mergescripts." \"";
There is a space in front of the X and Mergerscripts.zip_dir, so the one on the left of the double quotation mark should hang in front of the last double quotation mark of the string.

Java Escape character

Related Article

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: 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.