Home > database > [for] use python link mysql times wrong You have an error in your SQL syntax; Check the manual tha
[for] use python link mysql times wrong You have an error in your SQL syntax; Check the manual tha
Time:09-30
Error is as follows: Pymysql. Err. ProgrammingError: (1064, "You have an error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AUTO_INCERMENT, \ n BOOK VARCHAR (255), \ n PRIMARY KEY (' id')=INNOD '\ n) ENGINE at line 2 ") SQL statements: Create_sql="' The CREATE TABLE python ( Id INT (11) the NOT NULL AUTO_INCERMENT, BOOK a VARCHAR (255), PRIMARY KEY (' id ') ) ENGINE=INNODB DEFAULT CHARSET=utf8 ' ' '
CodePudding user response:
Since the increase is AUTO_INCREMENT Not AUTO_INCERMENT