| От | David B |
|---|---|
| Тема | Referring to derived column name in a RECORD |
| Дата | |
| Msg-id | GOEGKICPFOPNLIEIHGFJEEHKCCAA.postgresql@thegatelys.com обсуждение |
| Ответы |
Re: Referring to derived column name in a RECORD
|
| Список | pgsql-sql |
Hi folks, I know I'm doing something wrong here but cannot make it work no matter how many/few quotes I use<g> I'm trying to reference a column in a RECORD which is not a column name but a derived column. Any suggestions??? Example code below to highlight the problem: DECLARE r_app RECORD ; BEGIN FOR r_app IN SELECT to_char( created_timestamp, 'DDMMYY' ) AS "joined_on", last_name, first_name FROM customerWHERE cust_id = 123 LOOP r_app.last_name ; -- Easy to referenece this value but... r_app.joined_on ; -- HOW do I reference this value?...thisdoes not work .......
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера