此SQL代码有什么问题?为什么给我一个错误,我该如何解决?

时间:2019-11-28 18:32:10

标签: mysql sql

Error
Static analysis:

2 errors were found during analysis.

An opening bracket followed by a set of values was expected. (near "CREATE" at position 108)
Unexpected token. (near "CREATE" at position 108)
SQL query:

INSERT INTO playerstattoos (id, identifier, tattoos) VALUES (3, 'steam:11000011a3ebafa', '[]'), CREATE TABLE properties ( id int(11) NOT NULL, name varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, label varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, entering varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, exit varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, inside varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, outside varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, ipls varchar(255) COLLATE utf8mb4_bin DEFAULT '[]', gateway varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, is_single int(11) DEFAULT NULL, is_room int(11) DEFAULT NULL, is_gateway int(11) DEFAULT NULL, room_menu varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, price int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin

MySQL said: Documentation

#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 'CREATE TABLE properties (
  id int(11) NOT NULL,
  name varchar(255) COLLA' at line 7

SQL文件:https://www.mediafire.com/file/vi4m1a0dklb3zvf/fivem_rp_server.sql/file

0 个答案:

没有答案