execute

Поиск
Список
Период
Сортировка
От Mauricio Cruz
Тема execute
Дата
Msg-id 38dac89ce680b4e50ba69e2851cb6f60@sygecom.com.br
обсуждение исходный текст
Ответы Re: execute  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-sql

Hi every one, 

 

I'm trying to do the follow:

 

declare 

   aCad text[][]

begin

...

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

...

end; language plpgsql

but I get the follow error: 

sintax erro near to "aCad"

aCad := aCad || array[rCad.cmp,rSql.codfor]  

^

 

I guess I should not use "execute" besides of  insert, update, delete ...  but how could I do in this case ?

 

Thanks every one.

 

-- 
Grato,
Mauricio Cruz
Sygecom Informática
51 3442-3975 / 3442-2345 

В списке pgsql-sql по дате отправления:

Предыдущее
От: shabeer ece
Дата:
Сообщение: Not Able to Delink the old tables
Следующее
От: Sergey Konoplev
Дата:
Сообщение: Re: execute