Re: Question about SQL Control Structure(if then, for loop)

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Question about SQL Control Structure(if then, for loop)
Date: 2006-05-18 06:12:13
Message-ID: 20060518061213.GC14405@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

am 16.05.2006, um 21:51:45 -0400 mailte Jay Chiu folgendes:
> Can someone tell me how to use if/for in psql? The document

In plain SQL isn't if, then, else and so on.

> shows the control structures in the PL/pgSQL section. Must I use
> if/for inside some procedure/function?

Yes.

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Dirk Jagdmann 2006-05-18 07:37:09 Re: table constraint + INSERT
Previous Message Guillaume LELARGE 2006-05-18 05:53:04 Re: Add column and specify the column position in a table