MySQL Forums
Forum List  »  Spanish

Re: Convertir el valor de un campo string a fechahora
Posted by: William Chiquito
Date: August 22, 2007 06:00PM

Hola Ezequiel,

Puedes usar la función DATE_FORMAT.

Mi prueba:
SELECT DATE_FORMAT('20070822235959','%Y/%m/%d %H:%i:%s');
Resultado:
DATE_FORMAT('20070822235959','%Y/%m/%d %H:%i:%s')
-------------------------------------------------
2007/08/22 23:59:59

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Convertir el valor de un campo string a fechahora
2294
August 22, 2007 06:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.