| От | Andy Colson |
|---|---|
| Тема | select as params to function |
| Дата | |
| Msg-id | 4F3EB347.7090808@squeakycode.net обсуждение исходный текст |
| Ответы |
Re: select as params to function
|
| Список | 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера