29 lines
744 B
Transact-SQL
29 lines
744 B
Transact-SQL
CREATE PROCEDURE [dbo].[up_update_pet_stet]
|
|
@pet_id [uniqueidentifier]
|
|
,@Vital INT
|
|
,@Intelligence INT
|
|
,@Strength INT
|
|
,@Resilient INT
|
|
,@Eloquence INT
|
|
,@Charm INT
|
|
,@Temper INT
|
|
,@fHeight FLOAT
|
|
,@fWeight FLOAT
|
|
as
|
|
set nocount on
|
|
|
|
UPDATE dbo.PetTable SET
|
|
Vital = @Vital
|
|
,Intelligence = @Intelligence
|
|
,Strength = @Strength
|
|
,Resilient = @Resilient
|
|
,Eloquence = @Eloquence
|
|
,Charm = @Charm
|
|
,Temper = @Temper
|
|
,Height = @fHeight
|
|
,Weight = @fWeight
|
|
|
|
|
|
where pet_id = @pet_id;
|
|
|
|
return @@error
|