Mailinglisten-Archive |
Hallo > mysql> select table1.* from table1 > > LEFT JOIN table2 ON table1.id=table2.id > > where table2.id is NULL; > > > > This example finds all rows in table1 with an id value > that is not present > > in table2 (that is, all rows in table1 with no corresponding row in > > table2). This assumes that table2.id is declared NOT NULL, > of course. See > > section 12.5.5 How MySQL Optimizes LEFT JOIN and RIGHT JOIN. > > Meinst Du so? > Ja dankeschön nur umgekehrt :) select B.field1 from B left join A on A.field1 = B.field1 where A.field1 IS Null tut Dank auch an Gloss Mathias ! Mist da hätte ja RTFM wieder mal gut gepasst :( cu tbee --- *** Weitere Infos zur Mailingliste und MySQL unter http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive