开发者

MySQL query, syntax error i cannot locate

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜