| От | Tom Lane |
|---|---|
| Тема | Re: Update question and SQL question |
| Дата | |
| Msg-id | 12647.1025618094@sss.pgh.pa.us обсуждение |
| Ответ на | Update question and SQL question (Steve Lane <slane@fmpro.com>) |
| Список | pgsql-general |
Steve Lane <slane@fmpro.com> writes:
> NOTICE: Error occurred while executing PL/pgSQL function
> lookup_name_district
> NOTICE: line 1 at select into variables
> ERROR: record student_rec is unassigned yet
Hm. Could we see a complete example (eg, a runnable psql script to set
up the tables and the function and cause the error)? Trying to fill in
the missing pieces is no fun.
> 2. I thought I had understood the SQL standard to say that using AS when
> making column aliases was always optional,
The spec says that, but AS is always required for a column alias in PG.
See the "Compatibility" discussion on the SELECT reference page.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера