SQL error:1064, sqlstate:42000 error

Source: Internet
Author: User
Tags sql error

In MySQL, the characters in the following table are explicitly reserved. Most of these digital binaries are used by standard SQL as column names and/or table names (for example, GROUP). A few are retained because MySQL needs them and (currently) uses the YACC parser. Reserved words can be used as identifiers when they are caused.

You accidentally use the following keyword, then you will report this error.

"SQL error:1064, sqlstate:42000 error"

ADD All Alter
ANALYZE and As
Asc Asensitive Before
Between BIGINT BINARY
Blob BOTH By
Pager CASCADE Case
Change CHAR CHARACTER
CHECK COLLATE COLUMN
CONDITION CONNECTION CONSTRAINT
CONTINUE CONVERT CREATE
Cross Current_date Current_time
Current_timestamp Current_User CURSOR
DATABASE DATABASES Day_hour
Day_microsecond Day_minute Day_second
DEC DECIMAL DECLARE
DEFAULT DELAYED DELETE
DESC DESCRIBE Deterministic
DISTINCT Distinctrow Div
DOUBLE DROP DUAL
each ELSE ELSEIF
Enclosed Escaped EXISTS
EXIT EXPLAIN FALSE
FETCH FLOAT FLOAT4
FLOAT8 For Force
FOREIGN From Fulltext
Goto GRANT GROUP
Having High_priority Hour_microsecond
Hour_minute Hour_second IF
IGNORE Inch INDEX
INFILE INNER INOUT
Insensitive INSERT Int
INT1 INT2 INT3
INT4 INT8 INTEGER
INTERVAL Into Is
Iterate JOIN KEY
KEYS KILL LABEL
Leading LEAVE Left
Like LIMIT LINEAR
LINES LOAD LocalTime
Localtimestamp LOCK LONG
Longblob Longtext LOOP
Low_priority MATCH Mediumblob
Mediumint Mediumtext Middleint
Minute_microsecond Minute_second MOD
Modifies NATURAL Not
No_write_to_binlog Null NUMERIC
On OPTIMIZE OPTION
Optionally OR ORDER
Out OUTER OUTFILE
PRECISION PRIMARY PROCEDURE
PURGE RAID0 RANGE
READ READS REAL
REFERENCES Regexp RELEASE
RENAME REPEAT REPLACE
REQUIRE RESTRICT RETURN
REVOKE Right Rlike
SCHEMA SCHEMAS Second_microsecond
SELECT Sensitive SEPARATOR
SET SHOW SMALLINT
SPATIAL Specific Sql
SQLEXCEPTION SQLSTATE SQLWarning
Sql_big_result Sql_calc_found_rows Sql_small_result
Ssl Starting Straight_join
TABLE TERMINATED Then
Tinyblob TINYINT Tinytext
To TRAILING TRIGGER
TRUE UNDO UNION
UNIQUE UNLOCK UNSIGNED
UPDATE USAGE Use
USING Utc_date Utc_time
Utc_timestamp VALUES VARBINARY
VARCHAR Varcharacter VARYING
When WHERE While
With WRITE X509
Xor Year_month Zerofill

SQL error:1064, sqlstate:42000 error

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.