You are here: Re: Text field as date (MySQL) « PHP Programming Language « IT news, forums, messages
Re: Text field as date (MySQL)

Posted by Captain Paralytic on 08/02/07 10:00

On 2 Aug, 10:41, Chris Tate-Davies <christatedav...@gmail.com> wrote:
> Hello. I have a generic table used for many different generic
> functions. the fields are mainly varchar's but one of these varchars
> contains dates (in the format dd/mm/yyyy) for one reason or another.
>
> My question is, can I perform a query on this table, using date
> functions on this varchar field? I.e. search for the latest date?
>
> Thanks, Chris

You can by using the STR_TO_DATE function, but it won't be very
efficient.

 

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

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