开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜