| От | David Johnston |
|---|---|
| Тема | Re: can not use the column after rename |
| Дата | |
| Msg-id | 030d01ccbfe8$f525e100$df71a300$@yahoo.com обсуждение исходный текст |
| Ответ на | can not use the column after rename (salah jubeh <s_jubeh@yahoo.com>) |
| Список | pgsql-general |
From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of salah jubeh
Sent: Wednesday, December 21, 2011 6:39 AM
To: pgsql
Subject: [GENERAL] can not use the column after rename
Hello,
Why I can not do something like this in Postgres.
SELECT 1 as a , 2 as b , a + b as c ;
Regards
In a declarative language same-level cross-references are difficult to process (though admittedly not impossible). What if you had written:
SELECT a + b AS c, 1 as a, 2 as b
If scanned in a linear (top-to-bottom) fashion A and B would not be defined at the time the “a + b” part was evaluated.
David J.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера