mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 04:07:39 +00:00
Database updates
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
DROP PROCEDURE IF EXISTS sp_Student_Delete;
|
||||
DELIMITER $$
|
||||
|
||||
CREATE PROCEDURE sp_Student_Delete(IN p_id_student INT)
|
||||
DELIMITER ;;
|
||||
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_Delete`(IN p_id_student CHAR(36))
|
||||
BEGIN
|
||||
DELETE FROM student
|
||||
WHERE id_student = p_id_student;
|
||||
|
||||
SELECT ROW_COUNT() AS rows_affected;
|
||||
END$$
|
||||
|
||||
END;;
|
||||
DELIMITER ;
|
||||
|
||||
Reference in New Issue
Block a user