pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Houssay <ghoussay@noos.fr>
To: pgsql-sql@postgresql.org
Subject: FOR : Structure control pb
Date: Mon, 10 Nov 2003 12:24:55 +0100
Message-ID: <00a201c3a77d$4457c820$eeac84c3@camille> (raw)

I am using the For controle structure as follows

FOR i IN 0..23 LOOP

query

END LOOP;

The query is tested and is working OK.

When I launch the loop in psql interface, I get the error parse error at or near FOR.

As this is the first time I use this kind of struture I am probably using it the wrong way.

Thank you for your answer

view thread (2+ messages)  latest in thread

Message-ID: <00a201c3a77d$4457c820$eeac84c3@camille>
Permalink:  ../00a201c3a77d$4457c820$eeac84c3@camille/
Also on:    postgresql.org/message-id/00a201c3a77d$4457c820$eeac84c3@camille

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ghoussay@noos.fr
  Subject: Re: FOR : Structure control pb
  In-Reply-To: <00a201c3a77d$4457c820$eeac84c3@camille>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox