WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   SQL: Mulitple Drop Table - wie in mysql v3.x? (http://www.wcm.at/forum/showthread.php?t=189909)

MZ 18.04.2006 18:50

SQL: Mulitple Drop Table - wie in mysql v3.x?
 
Hallo Leuts,

PHP-Code:

DELETE FROM productsproducts_descriptionproducts_to_categories
WHERE 
((`products`.`products_date_added` < '2006-04-06')
AND (`
products_description`.`products_id` = `products`.`products_id`)
AND (`
products_to_categories`.`products_id` = `products`.`products_id`)) 

Ich bräuchte diesen SQL Code nicht für Mysql 4.x (Multiple Droptable support) sondern einzeln für Mysql 3.x.
Kann mir da wer weiterhelfen?

MZ 21.04.2006 18:44

no1 ?

helios 22.04.2006 09:16

da es in mysql 3.x auch keine sub queries gibt, ist das imho mit sql allein nicht möglich. das wird wohl nur mit einer schleife in php (oder perl etc.) gehen


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:57 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag