| От | Richard Sydney-Smith |
|---|---|
| Тема | Use derived expression in select statement |
| Дата | |
| Msg-id | 000f01c37a78$4ea53560$076c32d2@athlon2000 обсуждение исходный текст |
| Ответы |
Re: Use derived expression in select statement
|
| Список | pgsql-sql |
I am converting a database from Sybase and have found the following command
does not work in the same fashion.
select dy_c , dy_sect as tsect, (cy_bfwd + dy_p1T4) as curr_bal from fclitot
where dy_yr = 0 and (curr_bal) <-0.005
In the actual command used curr_bal is calculated from a very much longer
expression and rather than repeat the expression I simply refer to it by its
assigned name in sybase.
In postgres it tells me curr_bal is not found. is their a simular shorthand
available in postgres? curr_bal is calc from about 12 fields :{
thanks
Richard
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера