Re: For loop

From: Adrian Klaver <aklaver(at)comcast(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: For loop
Date: 2007-03-13 13:44:20
Message-ID: 200703130644.20870.aklaver@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday 13 March 2007 6:30 am, Ezequias R. da Rocha wrote:
> I quetion one more time. I must have a function ? Isn't another way to
> implement it without using functions ?
>
> Ezequias
>
> Bart Degryse escreveu:
> > Please post your complete CREATE FUNCTION statement. Error code 42601
> > refers to some syntax error which probably occurs just before you
> > start looping. To find it I need to see more code.
> > Please don't mail me directly. Only mail to pgsql-sql(at)postgresql(dot)org
> > <mailto:pgsql-sql(at)postgresql(dot)org>
> >
> > >>> "Ezequias R. da Rocha" <ezequias(at)fastcon(dot)com(dot)br> 2007-03-13 14:19 >>>
> >
> > They are not working well.
> >
> > Allways the same error.
> >
> > (if while)
> > ERROR: syntax error at or near "WHILE"
> > SQL state: 42601
> > Character: 1
> >
> > (if for)
> >
> > ERROR: syntax error at or near "FOR"
> > SQL state: 42601
> > Character: 1
> >
> > (if loop)
> > ERROR: syntax error at or near "LOOP"
> > SQL state: 42601
> > Character: 1
> > I installed the pgsql but I don't think it is a problem of language.
> > What could be wrong ? I am not using functions too. I am using the SQL
> > tool of PgAdmin III.
> >
> > Any help would be glad.
> >
> > Ezequias
> >
If you want to use plpgsql it needs to be within a function.
--
Adrian Klaver
aklaver(at)comcast(dot)net

In response to

  • Re: For loop at 2007-03-13 13:30:59 from Ezequias R. da Rocha

Responses

  • Re: For loop at 2007-03-13 14:03:39 from Ezequias R. da Rocha

Browse pgsql-sql by date

  From Date Subject
Next Message Ezequias R. da Rocha 2007-03-13 14:03:39 Re: For loop
Previous Message A. Kretschmer 2007-03-13 13:42:41 Re: For loop