开发者

MySQL query, syntax error i cannot locate

开发者 https://www.devze.com 2023-02-14 03:41 出处:网络
mysql_query(), query = CREATE TABLE hhh ( Bdate DATE, 6 INT(11) DEFAULT (3) ) the 6 is the name of the column, not a 开发者_运维技巧value.CREATE TABLE hhh (
mysql_query(), query = CREATE TABLE hhh ( Bdate DATE, 6 INT(11) DEFAULT (3) )

the 6 is the name of the column, not a 开发者_运维技巧value.


CREATE TABLE hhh (
`Bdate` DATE,
`6` INT(11) DEFAULT 3
)


Put it in apostrophes (or backticks) to see if that helps.

mysql_query(), query = CREATE TABLE hhh ( Bdate DATE, `6` INT(11) DEFAULT 3 ) 
0

精彩评论

暂无评论...
验证码 换一张
取 消