PL/SQL 存储过程中可变数量的参数 [英] Variable number of arguments in PL/SQL stored procedure

查看:31
本文介绍了PL/SQL 存储过程中可变数量的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过程 PL/SQL 可以采用可变数量的参数吗?

Can a procedure PL/SQL take a variable number of arguments?

就我而言,该过程由表单的提交按钮调用,并且表单具有可变数量的输入.

In my case, the procedure is called by the submit button of a form, and the form has variable number of inputs.

推荐答案

你不提,你在用 mod_plsql 吗?

You don't mention it, but are you using mod_plsql?

如果是这样,您应该阅读flexible参数传递.

If so, you should read about flexible parameter passing.

简而言之,在浏览器中使用感叹号作为过程名称的前缀,并使用 name_array 和 value_array 定义过程.

In short, prefix your procedure name with an exclamation mark in your browser and define your procedure with a name_array and value_array.

这篇关于PL/SQL 存储过程中可变数量的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆