DELETE Problem mit zwei Tabellen
Thomas Goik - auxion.de
technik at auxion.de
Do Jun 5 12:09:10 CEST 2008
Hallo,
DATE hat einen bestimmten WERT bei dir oder willst du so etwas wie NOW()
verwenden?
Hier mein Ansatz:
Delete from t1, t2 From tabelle_1 as t1 left join tabelle_2 as t2 on ( t1.id
= t2.id) where t1.time < '2008-01-30';
Mit freundlichen Grüssen
Thomas Goik
--
Lofox GmbH
Geschäftsführerin: Evelyn Fuchs
Im Kamperholz 48
44805 Bochum - Germany
Amtsgericht Bochum HRB 7042
USt-IdNr.: DE215698227
St.-Nr. Bochum 306/5885/0172
> -----Mensaje original-----
> De: mysql-de-bounces at lists.4t2.com [mailto:mysql-de-bounces at lists.4t2.com]
En
> nombre de Tobias Mueller-Wrana
> Enviado el: Donnerstag, 5. Juni 2008 11:44
> Para: mysql-de at lists.4t2.com
> Asunto: Re: DELETE Problem mit zwei Tabellen
>
> Sorry Fehler in der Syntax/eMail
>
> hier die richtige:
>
> delete TABELLE_1, TABELLE_2 from TABELLE_1, TABELLE_2
> where TABELLE_1.id = TABELLE_2.id and TABELLE_2.time <= DATE
>
>
> Danke
>
> Tobias
>
> ------------------------------
> Tobias Mueller-Wrana
> GFZ Potsdam, Sektion 2.4, E256
> Telegrafenberg. D-14773 Potsdam
> Tel.: +49-(0)331-288-1241
> -------------------------------
> _______________________________________________
> Allgemeine Infos zur Liste: http://www.4t2.com/mysql/
> Verwaltung: https://lists.4t2.com/cgi-bin/mailman/listinfo/mysql-de