Can any one explain why the following doesn’t work on MySql (gives Syntax error currently):
create table manager
(
employee_name varchar(20) not null,
manager_name varchar(20) not null,
primary key employee_name,
foreign key (manager_name) references manager
on delete cascade
)
also, assuming it did work, what would happen when a tuple in the relation manager is deleted?
the syntax would be,
QUESTIONS: assuming it did work, what would happen when a tuple in the relation manager is deleted?
ANSWER: all the child entries will also be deleted.