时间:2021-07-01 10:21:17 帮助过:5人阅读
Certain objects within MySQL, including database, table, index, column, alias, view, stored procedure, partition, tablespace, and other object names are known as identifiers
An identifier may be quoted or unquoted. If an identifier contains special characters or is a reserved word, you must quote it whenever you refer to it.
The identifier quote character is the backtick (“`”):
A string is a sequence of bytes or characters, enclosed within either single quote (“'”) or double quote (“"”) charactersMySQL :: MySQL 5.5 Reference Manual :: 9.1.1 String Literals 最简单的避免错误的方法就是,表名等保留字用反引号,其他例如SQL语句用双引号,我平时就尽量不用单引号的 简单说字符串用单引号,表名,字段名等用反引号