|
Re: DATE_FORMAT(): msg#01105db.mysql.general
> I've tried SELECT *, DATE_FORMAT('birthdate', '%M %e, %y') FROM table, and variations thereof. Did you try to remove quotes around field name? Just try this: SELECT *, DATE_FORMAT(birthdate, '%M %e, %y') FROM table Mikhail. ----- Original Message ----- From: "Jason Soza" <solja@xxxxxxx> To: "MySQL Mailing List" <mysql@xxxxxxxxxxxxxxx> Sent: Friday, June 28, 2002 20:29 Subject: DATE_FORMAT() > Hey, > > I have a table with a 'birthdate' column, stored in DATE format, YYYY-MM-DD. > I want queries of this table to present the birthdate in MMMM DD, YYYY > format. I know how to do DATE_FORMAT('2002-06-29', '%M %e, %Y'), but I can't > figure out how to work that into my SQL. I've tried SELECT *, > DATE_FORMAT('birthdate', '%M %e, %y') FROM table, and variations thereof. > The manual doesn't really give good examples of how to do this... > > Any help would be extremely appreciated. Thanks! > > Jason Soza > > > --------------------------------------------------------------------- > 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 <mysql-thread113345@xxxxxxxxxxxxxxx> > To unsubscribe, e-mail <mysql-unsubscribe-mike_lynx=smtp.ru@xxxxxxxxxxxxxxx> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- 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 <mysql-thread113354@xxxxxxxxxxxxxxx> To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=m.gmane.org@xxxxxxxxxxxxxxx> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: ERROR 2006:MySQL server has gone away: 01105, Anil Garg |
|---|---|
| Next by Date: | Re: Create Table Bug w/Varchar and Char: 01105, Mikhail Entaltsev |
| Previous by Thread: | DATE_FORMAT()i: 01105, Jason Soza |
| Next by Thread: | Re: DATE_FORMAT(): 01105, z |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |