Files
WinStudentGoalTracker/db/Objects/procedures/sp_Student_Delete.sql
T
2026-02-28 09:51:53 -08:00

11 lines
287 B
SQL

DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_Delete`(IN p_id_student CHAR(36))
BEGIN
DELETE FROM user_student
WHERE id_student = p_id_student;
DELETE FROM student
WHERE id_student = p_id_student;
SELECT ROW_COUNT() AS rows_affected;
END;;
DELIMITER ;