使用变量和参数

Transact-SQL 在其语句间传递数据有几种方式。其中有:

应用程序使用应用程序变量和参数标记来处理 Transact-SQL 语句中的数据。

请参见

DECLARE @local_variable

SELECT

函数

SET @local variable