简体   繁体   中英

MySQL Syntax error : “<table_name> is not valid at this position, expecting the name of an existing table”. Table already exists

MySQL Version : mysql Ver 8.0.11 for macos10.13 on x86_64 (MySQL Community Server - GPL)

在此处输入图片说明

groups table exists in the selected database as shown above.

GROUPS is a reserved word since MySQL 8.0.2. In this case you have to escape the table name with backticks. So you have to use the following INSERT INTO command:

INSERT INTO `groups` (column_name) VALUES (column_value)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM