Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE PROCEDURE RemoveGroup
- --ALTER PROCEDURE RemoveGroup
- (@id INTEGER)
- AS
- BEGIN
- BEGIN TRANSACTION deletingGroup
- UPDATE users SET group_id = NULL WHERE group_id = @id
- DELETE FROM groups WHERE id = @id
- COMMIT
- END
- GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement