Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/09/2010, 12:06
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Manejar timestamp

Si se puede con la función DATE o la función TIME.

Código MySQL:
Ver original
  1. mysql> SELECT DATE(now());
  2. +-------------+
  3. | DATE(now()) |
  4. +-------------+
  5. | 2010-09-06  |
  6. +-------------+
  7. 1 row in set (0.01 sec)
  8.  
  9. mysql> SELECT TIME(now());
  10. +-------------+
  11. | TIME(now()) |
  12. +-------------+
  13. | 13:08:19    |
  14. +-------------+
  15. 1 row in set (0.00 sec)
  16.  
  17. mysql> SELECT now();
  18. +---------------------+
  19. | now()               |
  20. +---------------------+
  21. | 2010-09-06 13:08:28 |
  22. +---------------------+
  23. 1 row in set (0.00 sec)

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming