Re: How to write a function that manipulates a set of results
В списке pgsql-general по дате отправления:
| От | Tony Caduto |
|---|---|
| Тема | Re: How to write a function that manipulates a set of results |
| Дата | |
| Msg-id | 45F86A3B.9070104@amsoftwaredesign.com обсуждение исходный текст |
| Ответ на | How to write a function that manipulates a set of results (Ashley Moran <work@ashleymoran.me.uk>) |
| Список | pgsql-general |
Ashley Moran wrote: > It fetches about 20 rows from a table of approx 4 million, then it > needs to do further calculations to narrow them down further. > Previously we have only written database code for SQL Server, and > there we would use a table variable. Apparently temporary tables are > not equivalent and not suitable for this. > > Seems like a temp table with a insert into would work for you. insert into mytemptable (field1,field2) select field1,field2 from sometable where field1 = 5; Then you can query the new temp table anyway you would like while you are still in the function. -- Tony Caduto AM Software Design http://www.amsoftwaredesign.com Home of PG Lightning Admin for Postgresql Your best bet for Postgresql Administration
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера