Mailinglisten-Archive |
Am Mittwoch, 11.09.02, um 14:43 Uhr (Europe/Berlin) schrieb Enrico
Weigelt:
> hmm.
>
> table kaese ( msgid int, message text, ...) ;
> table maus ( uid int, msgid int );
>
> select ... from kaese where not exists (
> select * from maus where kaese.msgid = maus.msgid and maus.uid =
> $user
> );
Neeeeee:
The following will not yet work in MySQL:
SELECT * FROM table1 WHERE id IN (SELECT id FROM table2);
SELECT * FROM table1 WHERE id NOT IN (SELECT id FROM table2);
SELECT * FROM table1 WHERE NOT EXISTS (SELECT id FROM table2 where
table1.id=table2.id);
Aus dem mySQL Manual
> ~-n,
> projekt kaesebrot
;)
Das Brot bitte groß. :)
Max
--
[:: ] projekt Brot
max.winde_(at)_projekt-brot.de
http://www.projekt-brot.de
die andere php liste
http://phpforfun.projekt-brot.de
php::bar PHP Wiki - Listenarchive