You are here: Re: Problems with SQL Query « PHP SQL « IT news, forums, messages
Re: Problems with SQL Query

Posted by Alex on 03/09/07 23:20

On Mar 9, 8:36 am, "J.O. Aho" <u...@example.net> wrote:
> alex.wald...@gmail.com wrote:
> > Sorry - here you've got the whole error message.
>
> > An Error Was Encountered
> > Error Number: 1064
>
> > You have an error in your SQL syntax; check the manual that
> > corresponds to your MySQL server version for the right syntax to use
> > near 'Dual, Night, Instrument, CC, landingsDay, landingsNight,
> > comment) VALUES (NULL, ' at line 1
>
> > INSERT INTO logbook (id, pilot, date, acModel, acReg, blockOffAP,
> > blockOff, blockOnAP, blockOn, totalTime, PIC, Dual, Night, Instrument,
> > CC, landingsDay, landingsNight, comment) VALUES (NULL, '1',
> > '2007-03-08', 'C172', 'SELZF', 'ESOW', '1234', 'ESSA', '1256', '0.4',
> > '0', '0.4', '0', '0', '0', '0', '0', NULL)
>
> Dual is a reserved word and should really not be used for
> database/table/column/function/procedure names, I strongly recommend you
> rename it, you can also use the "single quotes" ``.
>
> Notice the difference from the usual single quote ' and the one used for
> database/table/column names which is tittle a bit `.
>
> --
>
> //Aho

Problem solved :D

The issue was the 'Dual'. I renamed it and now it works just fine.
Thanks a lot for your help all of you!

 

Navigation:

[Reply to this 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

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