The difference between "and" in MySQL

Source: Internet
Author: User

The two are different under Linux and under Windows, under Linux is not differentiated under Windows.

The main difference under Windows is

Single quotation marks (') or double quotation marks are used primarily for string reference symbols

Such as:

mysql> Select ' Hello ', ' "Hello" ', ' "" Hello "" ', ' Hel ' lo ', '/' hello ';

Database, table, index, column, and Alias are quoted as a counter-tick ("') Note: The key below ESC

Such as:

Mysql>SELECT * from ' SELECT ' WHERE ' select '. ID >;

If the SQL Server mode includes the ansi_quotes mode option, you can also enclose the identifier in double quotation marks:

CREATE TABLE "Test" (Col INT);
ERROR 1064:you has an error in your SQL syntax. (...)
SET sql_mode= ' ansi_quotes ';
CREATE TABLE "Test" (Col INT);
Query OK, 0 rows Affected (0.00 sec)

The difference between "and" in MySQL

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