Reply to Re: Create Tabel

Your name:

Reply:


Posted by Steve on 08/10/05 15:00

> "CREATE TABLE enquiries (id int(6) NOT NULL auto_increment,name varchar(80)
> NOT NULL,
> [...]
> varchar(80) NOT NULL,technology varchar(80) NOT NULL,desc blob NOT
> NULL,
> [...]

> " Invalid query: You have an error in your SQL syntax near 'desc blob NOT
> NULL,files blob NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2 '

DESC is a MySQL reserved word. See
<http://dev.mysql.com/doc/mysql/en/legal-names.html>. Quoting it will
solve your problem. When in doubt, quote it.

CREATE TABLE ... `desc` blob NOT NULL, ...

---
Steve

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация