http://www.mysql.com/doc/en/DELETE.html

and from that page:
DELETE t1,t2 FROM t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id

or

DELETE FROM t1,t2 USING t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id
In the above case we delete matching rows just from tables t1 and t2.

>From MySQL 4.0, you can specify multiple tables in the DELETE
statement to delete rows from one or more tables depending on a
particular condition in multiple tables. However, you can not use
ORDER BY or LIMIT in a multi-table DELETE.

Hope that helps,

Ken

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 11:25 AM
Subject: deleting rows which table1.row=table2.row


> how to delete rows which table1.field=table2.field
>
> thanks
>
>
>
>
>
> -- 
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]
>
>


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to