请帮助我使用 PHP 中的 SQL 语法

问题描述 投票:0回答:0

我的错误:

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''Test.1.gameplan' ('id' INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, 'player1'...' at line 1 in C:\xampp\htdocs\XXXX.php:40 Stack trace: #0 C:\xampp\htdocs\XXXX.php(40): mysqli_query(Object(mysqli), 'CREATE TABLE 'T...') #1 {main} thrown in C:\xampp\htdocs\XXXX.php on line 40

我的 SQL 语法:

CREATE TABLE 'Test.1.gameplan' ('id' INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, 'player1' VARCHAR(50), 'player2' VARCHAR(50), 'group' VARCHAR(50), 'time' VARCHAR(50))

谢谢

php sql database syntax phpmyadmin
© www.soinside.com 2019 - 2024. All rights reserved.