tsql中使用参数设置取值范围

看了Reporting Service中的列子,看到类似下面的语句,原来in子句中可以使用参数噢,

where  soh.SalesPersonID IN (@BusinessPersonID)

这是太方便了。

原文地址:https://www.cnblogs.com/timy/p/1615474.html