18 lines
454 B
Transact-SQL
18 lines
454 B
Transact-SQL
CREATE PROCEDURE [dbo].[up_update_pet_level]
|
|
@pet_id [uniqueidentifier]
|
|
,@character_id [uniqueidentifier]
|
|
,@Level int
|
|
,@Experience bigint
|
|
,@inventory_count tinyint
|
|
as
|
|
set nocount on
|
|
|
|
update dbo.PetTable set
|
|
[Level] = @Level
|
|
,Experience = @Experience
|
|
,inventory_count = @inventory_count
|
|
where pet_id = @pet_id
|
|
|
|
select * from dbo.PetTable with (READUNCOMMITTED) where character_id = @character_id
|
|
|
|
return @@error
|