MySQL Forums
Forum List  »  Quality Assurance

Delete ... where ... Select Query
Posted by: Amin Khodabande
Date: August 19, 2007 10:30AM

Hi,
I have two table that related together by a foreign key ( Master Detail )
I use this delete query to delete records on master table which not applied in detail table

Delete From Master Where id = 7 and 7 not in (Select id From Details where idMaster = 7)

but it not work, is it a bug!?

Options: ReplyQuote


Subject
Views
Written By
Posted
Delete ... where ... Select Query
31540
August 19, 2007 10:30AM


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.