Reply to Re: select with DATE_FORMAT( )

Your name:

Reply:


Posted by ZeldorBlat on 11/11/07 22:01

On Nov 11, 4:55 pm, docs...@googlemail.com wrote:
> Dear all
>
> I'm quite new to mysql. My aim is to select a date format field by
> returning only the month and day number of it (e.g. date = 11 12). I
> got this statement and I could not get out how to get rid of the
> error:
>
> SELECT `email`, `raum`, DATE_FORMAT('date',`%c %d`) as date FROM
> `logger`;
>
> #1054 - Unknown column '%c %d' in 'field list'
>
> Is there a way to mascade `%c %d` so that mysql does not get it as a
> field?
>
> thanks in advance doc scsi

Yeah -- don't enclose it in backticks. It's a string, not a column
name. Use single quotes instead.

[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

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