MySQL Forums
Forum List  »  Spanish

Date int(10)
Posted by: Javier Fdez. Rivera
Date: June 05, 2007 11:43AM

Hola a tod@s.

Tiempo atras he visto y usado el tipo de dato int(10) para los campos que deben almacenar fechas. Se trata de almacenar directamente el valor timestamp.

Con el, es muy facil recuperar el valor y hacer cálculos con las fechas bajo este formato, y cuando ya es necesario se preformatea para mostrarlo adecuadamente.

Que opinan de este método frente a los tipos de datos especificos para fecha que aporta MySQL.

Gracias por adelantado.

Options: ReplyQuote


Subject
Views
Written By
Posted
Date int(10)
5734
June 05, 2007 11:43AM
3416
June 06, 2007 11:12AM
4698
June 08, 2007 04:03AM


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.