| From: | Jérôme Calais <jerome(dot)calais(at)arunix(dot)fr> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | IN selection issues |
| Date: | 2003-01-22 15:04:56 |
| Message-ID: | 1043230236.1116.15.camel@Neptune |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
I am encountering problems with IN selections.
I am trying this query :
delete from status where status_id not in (select distinct status_id
from company);
"status_id" is a foreign key in "company".
It does not delete any records from status table whereas it should
because the sub query returns some records.
Any explanation ?
Thanks
--
M. Jérôme CALAIS (Ingénieur Conseil)
Portable: 0620648297
E-Mail: jerome(dot)calais(at)arunix(dot)fr
------------------------------
Arunix
Z.A.L St Amé
62806 Liévin Cedex
France
Tel: 0321142843
Fax: 0321142831
URL: http://www.arunix.fr
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andreas Lange | 2003-01-22 15:41:03 | DELETE permission problems on table with long name after upgrade to 7.3.1 |
| Previous Message | pgsql-bugs | 2003-01-22 11:56:04 | Bug #880: COMMENT ON DATABASE depends on current database |