Hallo,
Wurde vom SPAM Bot zugemüllt und möchten es nun bereinigen.
was muss ich bei WHERE eintragen, wenn Kunden im Nachnahmen bestimmtes Wort enthalten?
DELETE aa., ad., ua., ba., ub., sa., us., u.
FROM s_user
AS u
LEFT JOIN s_user_addresses AS ad ON u.id = ad.user_id
LEFT JOIN s_user_addresses_attributes AS aa ON ad.id = aa.address_id
LEFT JOIN s_user_attributes AS ua ON u.id = ua.userID
LEFT JOIN s_user_billingaddress AS ub ON u.id = ub.userID
LEFT JOIN s_user_billingaddress_attributes AS ba ON ub.id = ba.billingID
LEFT JOIN s_user_shippingaddress AS us ON u.id = us.userID
LEFT JOIN s_user_shippingaddress_attributes AS sa ON us.id = sa.shippingID
WHERE XXXX;