Convertir time a numero.

From: Pablo Braulio <brulics(at)gmail(dot)com>
To: postgres <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Convertir time a numero.
Date: 2008-03-18 11:52:04
Message-ID: 47DFACE4.8070605@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hola a todos.

Tengo una tabla con un campo del tipo TIME, y quisiera convertirlo a
numeric para luego poder dividir un valor "numeric" por este campo.

Es decir, 00:02:25.787668, debo tenerlo como 2'xxxx, para luego poder
hacer el cálculo 2000/2'xxxx

¿Alguien sabe como hacerlo?. Estoy mirando la documentación pero no veo
ninguna función para convertir time a numeric.
- --

< ¡¡Nos vemos!! >
----------------------------
\
\
.::!!!!!!!:.
.!!!!!:. .:!!!!!!!!!!!!
~~~~!!!!!!. .:!!!!!!!!!UWWW$$$
:$$NWX!!: .:!!!!!!XUWW$$$$$$$$$P
$$$$$##WX!: .<!!!!UW$$$$" $$$$$$$$#
$$$$$ $$$UX :!!UW$$$$$$$$$ 4$$$$$*
^$$$B $$$$\ $$$$$$$$$$$$ d$$R"
"*$bd$$$$ '*$$$$$$$$$$$o+#"
"""" """""""
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH36zkK7lGsMchFswRArZSAJ0XkfyCeKmRA8bkKMkI/wf4ckKTxQCgwWVS
h2YXba6sB80oMWcnBqm4Wcc=
=BSKF
-----END PGP SIGNATURE-----

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Rubén F. Santiago 2008-03-18 11:59:26 Re: Ayuda!!
Previous Message Gabriel Hermes Colina Zambra 2008-03-18 01:09:37 Re: Error al instalar 8.3 en Windows Vista