| От | Thomas Kellerer |
|---|---|
| Тема | Re: DELETE using an outer join |
| Дата | |
| Msg-id | jubbqh$ekp$1@dough.gmane.org обсуждение |
| Ответ на | Re: DELETE using an outer join (Sergey Konoplev <gray.ru@gmail.com>) |
| Ответы |
Re: DELETE using an outer join
|
| Список | pgsql-sql |
Sergey Konoplev, 20.07.2012 10:21: > On Thu, Jul 19, 2012 at 6:52 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >>> Now I was wondering if a DELETE statement could be rewritten with the same "strategy": >> >> Not at the moment. There have been discussions of allowing the same >> table name to be respecified in USING, but there are complications. > > However it works. > > DELETE FROM some_table USING some_table AS s > WHERE > some_table.col1 = s.col1 AND > some_table.col2 = s.col2 AND > some_table.id < s.id; > But that's not an outer join
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера