Re: table alias

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: table alias
Дата
Msg-id 23102.1085496770@sss.pgh.pa.us
обсуждение исходный текст
Ответ на table alias  (Bob.Henkel@hartfordlife.com)
Список pgsql-hackers-win32
Bob.Henkel@hartfordlife.com writes:
> When I try an update like the one below I get the error that follows.

> update report_base s
> set s.sql_base = 'select * from test_data where'
> where s.report_base_id = 1;

> ERROR:  syntax error at or near "s" at character 20

This is correct per SQL standard.  There are some other databases that
allow an alias for the UPDATE target, but not Postgres.

            regards, tom lane

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: Bob.Henkel@hartfordlife.com
Дата:
Сообщение: Re: table alias
Следующее
От: "Douglas Wilson"
Дата:
Сообщение: Build problem