| От | John D. Burger |
|---|---|
| Тема | Re: using schema-qualified names in INSERTs |
| Дата | |
| Msg-id | 859d286e42cbea6293467329814b4ef8@mitre.org обсуждение |
| Ответ на | Re: using schema-qualified names in INSERTs (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: using schema-qualified names in INSERTs
|
| Список | pgsql-general |
> The list of columns can only apply to the table you've just named - > that's the only thing that makes sense. That's true for a SELECT from a single table, too, but the qualified syntax is allowed there. Also, this is allowed: # update testtab set b = testtab.b * 3; But this isn't: # update testtab set testtab.b = testtab.b * 3; Arguably a tad inconsistent. I don't know what the OP's rationale was, but I can imagine that allowing the syntax on INSERT might simplify the generation of SQL in certain circumstances. There's also the Principle of Least Surprise, etc. - John D. Burger MITRE
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера