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

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

        使用 SQL Server 的输出参数调用 Oracle 存储过程

        Calling Oracle stored procedure with output parameter from SQL Server(使用 SQL Server 的输出参数调用 Oracle 存储过程)
          <bdo id='btIyO'></bdo><ul id='btIyO'></ul>

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

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

                  <legend id='btIyO'><style id='btIyO'><dir id='btIyO'><q id='btIyO'></q></dir></style></legend>
                  <tfoot id='btIyO'></tfoot>

                • 本文介绍了使用 SQL Server 的输出参数调用 Oracle 存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 SQL Server 2008 R2 中有一个 Oracle 链接服务器.我需要执行 Oracle 存储过程(第一个是输出参数,第二个过程是输入参数):

                  I have an Oracle linked server in SQL Server 2008 R2. I need to execute Oracle stored procedures (with output parameter in first, and input parameter in second procedure):

                  CREATE OR REPLACE PROCEDURE my1.spGetDate(CurrentDate OUT VARCHAR2)
                  IS
                  BEGIN
                  -- set output parameter, no select statements
                  END;
                  
                  CREATE OR REPLACE PROCEDURE my1.spDeleteOldRecords(CurrentDate IN VARCHAR2)
                  IS
                  BEGIN
                  -- conditional delete from oracle table, no select statements
                  END;
                  

                  我没有找到关于这个问题的完整文档,只有带有无参数选择/非选择过程的简单示例,想知道如何调用这些过程、内部带有选择的过程、具有基本参数类型的多参数过程.

                  I didn't found any complete documentation on this question, only simple examples with parameterless select/nonselect procedures, and want to know, how to call these procedures, procedures with select inside, multiparameter procedures with basic parameter types.

                  推荐答案

                  它应该是这样工作的:

                  DECLARE @dateval DATETIME
                  
                  EXECUTE ('begin my1.spGetDate(?); end;', @dateval OUTPUT) AT ORA_DBLINK_NAME;
                  
                  EXECUTE ('begin my1.spDeleteOldRecords(?); end;', @dateval) AT ORA_DBLINK_NAME;
                  

                  如果您有多个参数,它可能如下所示:

                  If you have several parameters, it could look like this:

                  EXECUTE ('begin my1.spProc(?,?,?,?); end;', @param_in_1, @param_in_2, @param_out_3 OUTPUT, @param_out_4 OUTPUT) AT DBLINK_NAME;
                  

                  这篇关于使用 SQL Server 的输出参数调用 Oracle 存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                    <bdo id='a3WfY'></bdo><ul id='a3WfY'></ul>
                    • <legend id='a3WfY'><style id='a3WfY'><dir id='a3WfY'><q id='a3WfY'></q></dir></style></legend>

                      <tfoot id='a3WfY'></tfoot>
                      1. <small id='a3WfY'></small><noframes id='a3WfY'>

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