2008/11/1 Simeó Reig (Informes Incofisa) <[EMAIL PROTECTED]>: > Hola listeros [...] > Hay alguna manera de eliminar la parte decimal de un campo time ? He > intentado poner el siguiente default: > > horamodificacio time without time zone NOT NULL DEFAULT > (split_part(("time"('now'::text))::text, '.'::text, 1))::time without time > zone,
Y si pruebas con: create table foo(hora time not null default (to_char(now()::time, 'HH12:MI:SS'))::time); -- TIP 2: puedes desuscribirte de todas las listas simultáneamente (envía "unregister TuDirecciónDeCorreo" a [EMAIL PROTECTED])