mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 05:17:41 +00:00
11 lines
287 B
SQL
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 ;
|