mysql触发器问题,我想删除一个文章内容时另一个表中的有关这个文章的评论也同时删除,这个怎么写?
delimiter //
create trigger tr_cno before delete on wenzhnag for each row
begin
delete from choose where content=old.content;
end;
//
delimiter ;
delete from pinglun where content='';
我本来是这样写的但是一直报错
请这个怎么写