MySQL Forums
Forum List  »  General

On Delete Restriction
Posted by: Hazim Eid
Date: April 21, 2014 01:13AM

Dears,

i have Employee Table {
id,
name,
tel,
manager_id,
primary key(id),
foreign key (manager_id) references Employee (id) on delete restriction
}

i want to prevent deleting the manager if the manager has employees.

please your help

Options: ReplyQuote


Subject
Written By
Posted
On Delete Restriction
April 21, 2014 01:13AM
April 21, 2014 09:37AM


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.