开发者

[Oracle/PHP]Is it possible to pass an array to a PL/SQL procedure?

开发者 https://www.devze.com 2022-12-25 13:15 出处:网络
If it is possible, how does the parameter need to look like in the p开发者_运维技巧rocedure? And how do you pass an array to a procedure?Yep, you can. You need to use oci_bind_array_by_name.

If it is possible, how does the parameter need to look like in the p开发者_运维技巧rocedure? And how do you pass an array to a procedure?


Yep, you can. You need to use oci_bind_array_by_name.

This page has a good example of it.


You can also pass multiple records from .NET into Oracle with just one call. You set the ArrayBindCount of the command object to the number of elements you want to pass in and the value of the parameter to the array of values rather than a single value. Sample here:

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号