| От | David G Johnston |
|---|---|
| Тема | Re: Split the result of a query in 2 rows |
| Дата | |
| Msg-id | 1425494805753-5840502.post@n5.nabble.com обсуждение |
| Ответ на | Split the result of a query in 2 rows (JORGE MALDONADO <jorgemal1960@gmail.com>) |
| Ответы |
Re: Split the result of a query in 2 rows
|
| Список | pgsql-novice |
JORGE MALDONADO wrote > I have a very simple query to a single table as follows: > > SELECT field1, field2 FROM tbl_table ORDER BY field1 > > Is it possible to "split" the results so field1 is displayed in one row > and > field2 in another row? > > Best regards, > Jorge Maldonado See "UNION ALL" David J. -- View this message in context: http://postgresql.nabble.com/Split-the-result-of-a-query-in-2-rows-tp5840497p5840502.html Sent from the PostgreSQL - novice mailing list archive at Nabble.com.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера