CREATE PROCEDURE [dbo].[up_update_buff] @character_id uniqueidentifier, @type int, @id int, @time int as set nocount on begin update BuffTable set buff_time = @time where [character_id] = @character_id and [buff_type] = @type and [buff_id] = @id end return @@error