| От | Josh Berkus |
|---|---|
| Тема | Re: crosstab |
| Дата | |
| Msg-id | 200503012047.08799.josh@agliodbs.com обсуждение |
| Ответ на | crosstab (Theo Galanakis <Theo.Galanakis@lonelyplanet.com.au>) |
| Список | pgsql-sql |
THeo, > I have tried using unions or subselects however the table is quite large > and it takes far too long to run. The most efficient way would be to create > a stored proc that uses a cursor to loop through the table transforming the > data into the new table structure. However I would appreciate your feeback > before writing this procedure? A proc won't run any faster ... much slower, in fact. Unless you mean that you want to use it to correct the actual table structure, which is what you should be doing? -- --Josh Josh Berkus Aglio Database Solutions San Francisco
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера