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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Sat, 26 Jan 2008 00:32:18 -0500
  • Message-id: <c2d9e70e0801252132i468dd327we6cf522a74820f28(at)mail(dot)gmail(dot)com>

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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group