| От | Alban Hertroys |
|---|---|
| Тема | Re: How to append tables in a view |
| Дата | |
| Msg-id | 45D1905F.1020107@magproductions.nl обсуждение исходный текст |
| Ответ на | Re: How to append tables in a view ("Shoaib Mir" <shoaibmir@gmail.com>) |
| Список | pgsql-general |
Shoaib Mir wrote: > So hmm a UNION with an ORDERY BY should be good for this scenario... Only if the order matters to the OP, but he can always perform an ORDER BY on the queries on his view. I don't really see the point. The main difference between UNION and UINION ALL is that the latter allows for duplicates, which removes the need to unduplicate the results of the UNION (which requires ordering and is therefore relatively expensive). In short; if duplicates don't matter (or are desirtable even) UNION ALL is faster. -- Alban Hertroys alban@magproductions.nl magproductions b.v. T: ++31(0)534346874 F: ++31(0)534346876 M: I: www.magproductions.nl A: Postbus 416 7500 AK Enschede // Integrate Your World //
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера