----- Original Message From: "Kevin Nikiforuk"
<snip>
>xp512-0715-0716=# FOR LV in 1..10 LOOP
<snip>
It appears that you are trying to use the For .. Loop structure from the
psql command line. This structure is not plain SQL - its meant to be used
within PL/pgSQL. Have you tried incorporating it into a PL/pgSQL function?
See
http://www.postgresql.org/docs/8.1/static/plpgsql-control-structures.html#PLPGSQL-CONTROL-STRUCTURES-LOOPS
Regards,
George