CREATE PROCEDURE `spDeleteHomeWork` ( IN `P_HomeworkId` INTEGER ) BEGIN DELETE FROM `thomework` WHERE `Id` = `P_HomeworkId` ; DELETE FROM `thomeworkassign` WHERE `HomeWorkId` = `P_HomeworkId` ; SELECT ? ; END 