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

6 lines
160 B
MySQL
Raw Permalink Normal View History

2020-06-07 21:29:59 +00:00
CREATE PROCEDURE UpdateUserName @OldName varchar(255), @NewName varchar(255)
AS
UPDATE Users
SET UserName = @NewName, LikeCount = 0
WHERE UserName = @OldName
GO