==============求一个删除关系表的问题===========
相册表h_albuma_id inta_name varchar(50)照片表h_photo p_id inta_id int 和h_album的外键p_name varhcar(50)评论表h_commentc_id intc_relatedid int 关联的ID,此处关联h_photo的p_id,但不是外键c_content==================问题=====================现在要删除h_album:delete from h_album where a_id=1----此处假设要删除的相册id为1并删除a_id为1的照片表h_photo:delete from h_photo where a_id=1删除照片表之前要先删除该相册a_id为1的所有照片的所有评论.该怎么写呢?