describe is a reserved word, use another name for the column.

http://www.mysql.com/doc/R/e/Reserved_words.html

> can someone tell me what I'm doing wrong here?    I keep getting the error
> "You have an error in your SQL syntax near 'describe text, fulltext text,
> section VARCHAR (32) DEFAULT '0', type VARCHAR' at line 6" and I don't
> understand why:
>
> CREATE TABLE article(
> id INT (4) DEFAULT '0' NOT NULL AUTO_INCREMENT,
> title VARCHAR (128) DEFAULT '0',
> logosmall VARCHAR (128) DEFAULT '0',
> logolarge VARCHAR (128) DEFAULT '0',
> describe text,
> fulltext text,
> section VARCHAR (32) DEFAULT '0',
> type VARCHAR (32) DEFAULT '0',
> PRIMARY KEY(id),
> UNIQUE(id)
> );


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to