Mailinglisten-Archive |
Soooooorryy, hatte mit falscher Uberschrift eben gepostet :-(( (Anfanger)
_______________________________________
Nachdem ich jetzt einiges versucht habe , auch mit count(*)
hier einmal das script
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
$fis = mysql_query("select id, firma, plz, strasse from mytabelle group by
firma, plz, strasse HAVING count(*) > 1");
while($f=mysql_fetch_array($fis)){
mysql_query("delete from mytabelle where id like '$f[id]'");
}
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nach 30sec kommt timeout und es sind vielleicht 20 Datensatze geloscht :-((
Doppelte sind es ab 18.000 von 130.000 *schluchz*
Wie kann ich alle doppelten aufeinmal loschen ????????????????????
Bitte dringend um rat, sonst wird es wieder einmal ne lange Nacht oder Woche
:-((
Danny
php::bar PHP Wiki - Listenarchive