From: | Christopher Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: create stored procedure from temporary table |
Date: | 2004-11-30 04:09:14 |
Message-ID: | m3u0r8rn9x.fsf@knuth.knuth.cbbrowne.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Oops! dja(dot)mnurdin(at)cma-cgm(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2004-11-30 04:21:42 | Re: SQL Server stored procedures? |
Previous Message | Tom Lane | 2004-11-30 03:57:35 | Re: VACUUM and ANALYZE Follow-Up |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-11-30 04:49:46 | Re: TEXT::CIDR/INET::CIDR output confusion |
Previous Message | Nurdin | 2004-11-30 02:57:12 | create stored procedure from temporary table |