Y2S1-Database_Design/SQL/queries/DML/query 5.sql

9 lines
195 B
MySQL
Raw Permalink Normal View History

2020-06-07 21:29:59 +00:00
CREATE PROCEDURE RemoveUser @UserID integer
AS
DELETE FROM RoleAllocation
WHERE UserID = @UserID;
DELETE FROM ProfilePicture
WHERE UserID = @UserID;
DELETE FROM Comment
WHERE UserID = @UserID;
GO