📜  在 SQL 代码示例中为 var 赋值

📅  最后修改于: 2022-03-11 15:05:04.594000             🧑  作者: Mango

代码示例1
DECLARE @EmpIDVariable int;
SELECT @EmpIDVariable = MAX(EmployeeID)
FROM HumanResources.Employee;