MySQL Forums
Forum List  »  InnoDB

Re: Deleting from 2 tables
Posted by: Heikki Tuuri
Date: April 26, 2005 07:36AM

Hi!

Can you use

ON DELETE CASCADE?

Otherwise, you can use the multi-table DELETE of MySQL. Make sure it deletes first in the child table, and only after that in the parent.

Best regards,

Heikki
Oracle Corp./Innobase Oy
InnoDB - transactions, row level locking, and foreign keys for MySQL

InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM tables
http://www.innodb.com/order.php

Options: ReplyQuote


Subject
Views
Written By
Posted
3264
April 21, 2005 12:49AM
Re: Deleting from 2 tables
2110
April 26, 2005 07:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.