Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Assign value to var in SQL

DECLARE @EmpIDVariable int;
SELECT @EmpIDVariable = MAX(EmployeeID)
FROM HumanResources.Employee;
 
PREVIOUS NEXT
Tagged: #Assign #var #SQL
ADD COMMENT
Topic
Name
9+4 =