nested query

Поиск
Список
Период
Сортировка
От Mustapha Amrani
Тема nested query
Дата
Msg-id 200101051404.OAA16359@laplace
обсуждение исходный текст
Ответы Re: nested query  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-docs
I have two linked tables Table1 and Table2. I have deleted some rows in table1
Now I need two delete the rows in table2 that correspond to the rows
deleted in table1. The two table are linked by field id.
I tried the following but with no success:
delete * from table2 where not exists (select * from table1 where
table2.id=id);

Any help much appreciated.

Mustapha


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: postgresql-7.1beta1 initdb error
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: nested query