Re: create stored procedure from temporary table

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: create stored procedure from temporary table
Дата
Msg-id m3u0r8rn9x.fsf@knuth.knuth.cbbrowne.com
обсуждение исходный текст
Ответ на create stored procedure from temporary table  ("Nurdin" <dja.mnurdin@cma-cgm.com>)
Список pgsql-sql
Oops! dja.mnurdin@cma-cgm.com ("Nurdin") was seen spray-painting on a wall:
> i was wondering, how to create dynamic table like temporary table
> but create from function and the result from function too....cos i
> want count same calculation from other table migh be a multiple
> table so i need looping and join table...

Well, you can define a temporary table inside a stored procedure using
EXECUTE, as long as all of the operations that touch that table are
kept inside dynamic SQL invoked using EXECUTE...
-- 
output = reverse("moc.liamg" "@" "enworbbc")
http://www.ntlug.org/~cbbrowne/oses.html
"Bonus!  The lack of multitasking is one of the most important reasons
why DOS destroyed Unix in the marketplace." -- Scott Nudds


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

Предыдущее
От: Johan Henselmans
Дата:
Сообщение: grouping a many to many relation set
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: TEXT::CIDR/INET::CIDR output confusion