| From: | Andy Colson <andy(at)squeakycode(dot)net> |
|---|---|
| To: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
| Subject: | select as params to function |
| Date: | 2012-02-17 20:06:31 |
| Message-ID: | 4F3EB347.7090808@squeakycode.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi all,
Trying to clean up some data so I wrote myself a function which will
insert the new stuff okay but the existing data... I'm not sure how to
run it through the function.
To make life a little simpler on myself, the old data is in table
webserv2 and the new data will go into table webserv2a.
The function insert_webserv2 takes the old arguments, cleans things up,
and inserts into webserv2a.
All is well there. But I have a table full of stuff in webserv2 that
I'd like moved over.
I'd love to do:
select insert_webserv2( (select * from webserv2) );
but that obviously wont work. Is there a simple way to feed a table
through the function?
-Andy
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2012-02-17 20:11:03 | Re: select as params to function |
| Previous Message | Jayashankar K B | 2012-02-17 20:06:30 | Postgres 9.1 package for i.MX51X processor from Freescale |