Skip site navigation (1) Skip section navigation (2)

Re: actualizar columna fecha

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: Miguel Rodríguez Penabad <penabad(at)gmail(dot)com>
Cc: José Fermín Francisco Ferreras <josefermin54(at)hotmail(dot)com>, "foro postgresql" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: actualizar columna fecha
Date: 2008-01-26 05:32:18
Message-ID: c2d9e70e0801252132i468dd327we6cf522a74820f28@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-es-ayuda
On Jan 25, 2008 7:41 PM, Miguel Rodríguez Penabad <penabad(at)gmail(dot)com> wrote:
> > CREATE OR REPLACE FUNCTION upd_prueba RETURNS TRIGGER AS $$
> >    begin
> >          NEW.fecha := current_date;
> >    end;
> > $$ LANGUAGE plpgsql;
>
> Yo diría que falta un
>  return new;
> después de la asignación, ¿no?.
>

ooops!!! cierto... ya pues, nadie es perfecto, ni siquiera yo ;)

-- 
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
                                       Richard Cook

In response to

pgsql-es-ayuda by date

Next:From: Henrry Joshney Servitá SánchezDate: 2008-01-26 20:41:13
Subject: Obtener lista de tablas de base de datos en postgresql
Previous:From: =?iso-8859-1?Q?Ram=F3n_Alberto_Bruening_Gonz=E1lez?=Date: 2008-01-26 03:07:10
Subject: Grabar Imagenes en BD

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group