| From: | Richard Broersma Jr <rabroersma(at)yahoo(dot)com> |
|---|---|
| To: | Kevin Nikiforuk <Kevin(dot)Nikiforuk(at)Acrodex(dot)com>, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Error when trying to use a FOR loop |
| Date: | 2006-07-20 20:25:30 |
| Message-ID: | 20060720202530.41547.qmail@web31802.mail.mud.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
> Sorry if this is in the archives, but I've done a search and couldn't find anything relevant.
> I'm running HP's precompiled version of 8.1.3.1 as part of their Internet Express offering, and
> I can't seem to run a for loop. Here's what I'm seeing:
> xp512-0715-0716=# FOR LV in 1..10 LOOP
> xp512-0715-0716-# select * from ldevrg;
> ERROR: syntax error at or near "FOR" at character 1
> LINE 1: FOR LV in 1..10 LOOP
The following is give examples of control structures. However, you need to be sure that your
version of postgresql has a procedural language installed. If not, you will need to install it.
Use can use createlang to add different languages to postgresql.
http://www.postgresql.org/docs/8.1/interactive/sql-createlanguage.html
The following link gives a shot list of languages that you can use. There are others however:
http://www.postgresql.org/docs/8.1/interactive/server-programming.html
see Server-side Procedural Languages from:
http://www.postgresql.org/download/
Hope this help.
Regards,
Richard Broersma Jr.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Broersma Jr | 2006-07-20 20:28:04 | Re: Help with privilages please |
| Previous Message | Stephan Szabo | 2006-07-20 20:19:25 | Re: Error when trying to use a FOR loop |