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

the 6 is the name of the column, not a value.

2
  • 6 is a really bad column name. Why not use six instead? Commented Feb 28, 2011 at 18:58
  • 3
    You really want to create a column named 6? Commented Feb 28, 2011 at 18:58

2 Answers 2

3
CREATE TABLE hhh (
`Bdate` DATE,
`6` INT(11) DEFAULT 3
)
Sign up to request clarification or add additional context in comments.

Comments

1

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

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

1 Comment

@delphist: I thought I'd amended that as well. Good spot. Will update my answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.