<bdo id='w7agY'></bdo><ul id='w7agY'></ul>
  • <small id='w7agY'></small><noframes id='w7agY'>

    <i id='w7agY'><tr id='w7agY'><dt id='w7agY'><q id='w7agY'><span id='w7agY'><b id='w7agY'><form id='w7agY'><ins id='w7agY'></ins><ul id='w7agY'></ul><sub id='w7agY'></sub></form><legend id='w7agY'></legend><bdo id='w7agY'><pre id='w7agY'><center id='w7agY'></center></pre></bdo></b><th id='w7agY'></th></span></q></dt></tr></i><div id='w7agY'><tfoot id='w7agY'></tfoot><dl id='w7agY'><fieldset id='w7agY'></fieldset></dl></div>
    <tfoot id='w7agY'></tfoot>

      <legend id='w7agY'><style id='w7agY'><dir id='w7agY'><q id='w7agY'></q></dir></style></legend>

        将可变参数列表传递给 SqlServer2008 存储过程的理智/快速方法

        Sane/fast method to pass variable parameter lists to SqlServer2008 stored procedure(将可变参数列表传递给 SqlServer2008 存储过程的理智/快速方法)

            • <bdo id='rubdD'></bdo><ul id='rubdD'></ul>
              <legend id='rubdD'><style id='rubdD'><dir id='rubdD'><q id='rubdD'></q></dir></style></legend>

              <i id='rubdD'><tr id='rubdD'><dt id='rubdD'><q id='rubdD'><span id='rubdD'><b id='rubdD'><form id='rubdD'><ins id='rubdD'></ins><ul id='rubdD'></ul><sub id='rubdD'></sub></form><legend id='rubdD'></legend><bdo id='rubdD'><pre id='rubdD'><center id='rubdD'></center></pre></bdo></b><th id='rubdD'></th></span></q></dt></tr></i><div id='rubdD'><tfoot id='rubdD'></tfoot><dl id='rubdD'><fieldset id='rubdD'></fieldset></dl></div>
                <tbody id='rubdD'></tbody>

                  <tfoot id='rubdD'></tfoot>

                  <small id='rubdD'></small><noframes id='rubdD'>

                1. 本文介绍了将可变参数列表传递给 SqlServer2008 存储过程的理智/快速方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  一个相当全面的大脑查询已经找到了一千零一种传递可变长度参数列表的方法,这些方法涉及以下方法:

                  A fairly comprehensive query of the brain has turned up a thousand and one ways to pass variable length parameter lists that involve such methods as:

                  • 基于 CLR 的将字符串解析为整数列表的方法
                  • 需要存在数字"表的表值函数 (wtf?)
                  • 将数据作为 XML 传递
                  • CLR based methods for parsing strings to lists of integers
                  • Table valued functions that require the presence of a 'Numbers' table (wtf?)
                  • Passing the data as XML

                  我们的要求是将两个可变长度的整数列表(~最多 20 个整数)传递给存储过程.上面列出的所有方法似乎都很有趣.

                  Our requirements are to pass two variable length lists of integers (~max 20 ints) to a stored procedure. All methods outlined above seem to smell funny.

                  这只是必须完成的方式,还是有更好的方法?

                  Is this just the way it has to be done, or is there a better way?

                  我刚刚找到了这个,它可能符合条件这个问题是骗人的

                  I've just found this, which may qualify this question as a dupe

                  推荐答案

                  是的,我肯定会看看 表值参数为此.作为附带的好处,它可以让您直接为您的程序内部使用一个漂亮、干净的基于集合的实现,而无需任何数据按摩.

                  Yes, I'd definitely look at Table Valued Parameters for this. As a side benefit, it may allow you to use a nice, clean set-based implementation for the innards of your procedure directly, without any data massaging required.

                  这里还有另一个参考资料..

                  这篇关于将可变参数列表传递给 SqlServer2008 存储过程的理智/快速方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)(超出最大存储过程、函数、触发器或视图嵌套级别(限制 32))
                  How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                  How to debug stored procedure in VS 2015?(如何在 VS 2015 中调试存储过程?)
                  Set the variable result, from query(设置变量结果,来自查询)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                      <legend id='dFZ7f'><style id='dFZ7f'><dir id='dFZ7f'><q id='dFZ7f'></q></dir></style></legend>

                        <tfoot id='dFZ7f'></tfoot>
                        • <bdo id='dFZ7f'></bdo><ul id='dFZ7f'></ul>
                              <tbody id='dFZ7f'></tbody>

                            <small id='dFZ7f'></small><noframes id='dFZ7f'>

                            <i id='dFZ7f'><tr id='dFZ7f'><dt id='dFZ7f'><q id='dFZ7f'><span id='dFZ7f'><b id='dFZ7f'><form id='dFZ7f'><ins id='dFZ7f'></ins><ul id='dFZ7f'></ul><sub id='dFZ7f'></sub></form><legend id='dFZ7f'></legend><bdo id='dFZ7f'><pre id='dFZ7f'><center id='dFZ7f'></center></pre></bdo></b><th id='dFZ7f'></th></span></q></dt></tr></i><div id='dFZ7f'><tfoot id='dFZ7f'></tfoot><dl id='dFZ7f'><fieldset id='dFZ7f'></fieldset></dl></div>