数据库triggerexample有两个表:technician(available, email, id, name)和tickets(description, id, techinician_id, username)tickets中的techinician_id对应technician中的id
已经把这两个表改为engine=innodb了但想添加外键:alter table tickets
add foreign key ticky(technician_id)
references technician(id)
on delete restrict;
为什么出错:Cannot add or update a child row: a foreign key constraint fails('triggerexample', '#sql-654_6', constraint '#sql-654_6_ibfk_1' foreign key(technician_id) references 'technician'(id))