Re: execute

From: Jov <amutu(at)amutu(dot)com>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: Mauricio Cruz <cruz(at)sygecom(dot)com(dot)br>, pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: execute
Date: 2013-04-26 00:57:13
Message-ID: CADyrUxMRwLp=CtrzLBwJ0VX=AwsbUWoCkNUXCwE-JFK=uJvHJA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

2013/4/26 Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>

> aCad:=aCad array[['||var1||','||var2||']]

do you want append array[['||var1||','||var2||']] to aCad?
you can do this:

declare tmpa text[] := array[]::text[];
...
tmpa:= tmpa || var1 || var2;
aCad:= aCad || tmpa;
...

execute in plpgsql can ruan any pg sql command,but

aCad:=aCad array[['||var1||','||var2||']]

is not a command, it is a statement in plpgsql, a PART of plpgsql cmd.

--
Jov
blog: http:amutu.com/blog <http://amutu.com/blog>

In response to

  • Re: execute at 2013-04-26 00:21:21 from Sergey Konoplev

Browse pgsql-sql by date

  From Date Subject
Next Message Jasen Betts 2013-04-27 06:34:45 Re: execute
Previous Message Sergey Konoplev 2013-04-26 00:21:21 Re: execute