Comments on: Why multi-table cross-database deletes fail in MySQL http://www.xaprb.com/blog/2006/05/12/why-multi-table-cross-database-deletes-fail-in-mysql/ Stay curious! Mon, 13 May 2013 05:55:40 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: RonFinnerty http://www.xaprb.com/blog/2006/05/12/why-multi-table-cross-database-deletes-fail-in-mysql/#comment-19947 RonFinnerty Wed, 28 Mar 2012 14:03:43 +0000 http://www.xaprb.com/blog/?p=152#comment-19947 while what you describe is true MOST of the time, I have had multi deletes fails with unknown table…
1) while “using” the correct database.
2) while fully qualifying all tables with `database`.`tablename`.`field`
e.g.
DELETE FROM `database`.`table2`
USING `database`.table1`
WHERE `database`.`table1`.`field` = `database`.`table2`.`field`;

]]>
By: Brian Aker http://www.xaprb.com/blog/2006/05/12/why-multi-table-cross-database-deletes-fail-in-mysql/#comment-18983 Brian Aker Sat, 11 Dec 2010 20:30:55 +0000 http://www.xaprb.com/blog/?p=152#comment-18983 Hi!

Do you have a full test case for this?

Thanks,
-Brian

]]>
By: Xaprb http://www.xaprb.com/blog/2006/05/12/why-multi-table-cross-database-deletes-fail-in-mysql/#comment-18976 Xaprb Tue, 07 Dec 2010 13:56:37 +0000 http://www.xaprb.com/blog/?p=152#comment-18976 Great!

]]>
By: Konstantin Osipov http://www.xaprb.com/blog/2006/05/12/why-multi-table-cross-database-deletes-fail-in-mysql/#comment-18974 Konstantin Osipov Tue, 07 Dec 2010 12:36:39 +0000 http://www.xaprb.com/blog/?p=152#comment-18974 This is fixed in 5.5.

]]>