[Pgsql-ayuda] ayuda con fechas en postgres :(
Alvaro Herrera
alvherre@dcc.uchile.cl
Wed, 15 Oct 2003 17:42:21 -0300
On Wed, Oct 15, 2003 at 03:24:28PM -0600, Manuel Sugawara wrote:
> > quisiera saber acaso existe alguina funcion parecida al to_days de mysql
> > en postgresql
Otra cosa totalmente fuera del standard ...
Puedes usar
SELECT EXTRACT(epoch FROM timestamp) / 86400
Mira la documentación sobre EXTRACT en la sección de tipos de datos de
horas y fechas.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"The Postgresql hackers have what I call a "NASA space shot" mentality.
Quite refreshing in a world of "weekend drag racer" developers."
(Scott Marlowe)