Database name, table name with quotation marks and COLLATE utf8_general_ci question the meaning of SQL statements when building a database MySQL database

First, when the MySQL database building a database SQL statement, database name, table name with the problem quotation marks
to explain:
When you create a MySQL database and table, database names, table names and field names out of symbol `not a single quote, but English input method anti single quotes, with the keyboard - the same location.
In order to avoid keyword conflicts your table and field names, and database SQL. However, you can not add.
In addition, it is noted that some programmers like to copy other people blog in the SQL script from a Web page, the copy - paste process prone to inter-backward apostrophe inadvertently become single quotation marks, resulting into SQL script error, please in particularly careful when developing! ! !


Two, COLLATE utf8_general_ci meaning
explanation:
when COLLATE check, check meaning. This code specifies validation rules database, CI is an abbreviation for case insensitive, meaning are case insensitive; CS is opposite, i.e. case sensitive, case sensitive.

Guess you like

Origin www.cnblogs.com/rainbow70626/p/12452808.html