gpt4 book ai didi

php - 当我的列名中有空格时,为什么我的查询会中断?

转载 作者:行者123 更新时间:2023-12-01 00:11:11 25 4
gpt4 key购买 nike

<分区>

我一直收到这个错误:

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 'Name int(10) NOT NULL, Middle Name varchar(10) NOT NULL, Last Name varch' at line 2

我不确定我犯了什么错误......

<?php 
mysql_connect('klaic.db.11427125.hostedresource.com', 'klaic', '*******')
or die (mysql_error());
mysql_select_db('klaic')
or die (mysql_error());
mysql_query("create table account(
Fist Name int(10) NOT NULL,
Middle Name varchar(10) NOT NULL,
Last Name varchar(10) NOT NULL,
Email varchar(55) NOT NULL,
Comfirm Email varchar(55) NOT NULL,
D.O.B varchar(10) NOT NULL,
ID int(11) NULL,
PRIMARY KEY (ID)
)") or die (mysql_error());
echo "Complete.";
?>

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com