Deklarasikan variabel SQL
-- name type value
DECLARE @PersonId AS UNIQUEIDENTIFIER = 'ddb7bfff-9ce8-4651-6973-08d9a46c90b6'
Victorious Vole
-- name type value
DECLARE @PersonId AS UNIQUEIDENTIFIER = 'ddb7bfff-9ce8-4651-6973-08d9a46c90b6'
DECLARE @datecurrent datetime2
set @datecurrent = CAST(getdate() AS smalldatetime)
how to declare a variable in sql