Re: DELETE ... USING LATERAL

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: DELETE ... USING LATERAL
Дата
Msg-id CAHOFxGrtOqV_CdyZktPSFHKnom3jscF_YTGdZRmmQ_7weARJQw@mail.gmail.com
обсуждение исходный текст
Ответ на DELETE ... USING LATERAL  (Nikhil Benesch <nikhil.benesch@gmail.com>)
Ответы Re: DELETE ... USING LATERAL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Oct 4, 2021, 10:30 AM Nikhil Benesch <nikhil.benesch@gmail.com> wrote:
you can't reuse the FROM table name in the USING clause:

    # delete from int_arrays using int_arrays;
    ERROR:  table name "int_arrays" specified more than once

Don't you need to use an alias for the table in the using clause?

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

Предыдущее
От: Nikhil Benesch
Дата:
Сообщение: Re: DELETE ... USING LATERAL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DELETE ... USING LATERAL