将列表传递给 TSQL 2008 存储过程 [英] Passing a list to a TSQL 2008 Stored Procedure
本文介绍了将列表传递给 TSQL 2008 存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 MSSQL Server 2008 中,有没有一种方法可以将流构造为存储过程,其中 ... 作为参数传入.并且不是必须有一个分离"存储过程或函数来拆分 csv 并返回一个表?
In MSSQL Server 2008 is there a way to construct the flowing as a stored procedure where the ... is passed in as a parameter. And not have to have a "separating" stored procedure or function which splits a csv and returns a table?
select *
from
atable
where
atable.id in (...)
推荐答案
使用 表值参数.以下是在 ADO.NET 中使用它们的方法.
这篇关于将列表传递给 TSQL 2008 存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文