我爱Aspx >> C#.Net >> .NET调用Oracle存储过程,使用数组类型的参数(如ArrayList)今天一个项目组的朋友问及:如何在.NET中调用Oracle的存储过程,并以数组作为参数输入。
Oracle的PL/SQL非常强大,支持定长数组和变长数组,支持任何自定义数据类型。通过阅读ODP的文档,发现Oracle是完全支持将数组作为存储过程参数的。下面给出文档信息。
Array Binding
The array bind feature enables applications to bind arrays of a type using the OracleParameter class. Using the array bind feature, an application can insert multiple rows into a table in a single database round-trip.
The following example inserts three rows into the Dept table with a single database round-trip. The OracleCommand ArrayBindCount property defines the number of elements of the array to use when executing the statement.
// C#
using System;
using System.Data;
using Oracle.DataAccess.Client;
class ArrayBindSample
{
static void Main()
{
OracleConnection con = new OracleConnection();
con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle;";
Ҷƪл˵?
mscorwks.dll在.Net中的地位以及..[07-30]
VB.NET中的Format怎么和VB6中的不..[07-06]
有一年asp项目经验,几个月业余时..[07-06]
串口通讯中的7位数据位,和8位数..[07-06]
求ASP.NET办公自动化系统开发实例..[07-06]
如何在.net实现自动关机[07-06]
简体Visual Stadio .NET 2003安装..[07-06]
关于org.apache.commons.net.ftp..[07-06]
asp.net真是他妈的变态K型.开发网..[07-06]
本人是asp.net的初学者,谁能给我..[07-06]
mscorwks.dll在.Net中的地位以及..[07-30]
DataTable操作中的性能问题[07-30]
用ObjectDataSource实现自定义分..[07-30]
加快运行速度 XP系统注册表与驱动..[07-30]
不要随意重装你的Windows操作系统[07-30]
巧妙去除QQ和MSN的广告 Vista下也..[07-30]
无线局域网的安全风险分析和解决..[07-30]
接入节点入手 谈黑客和DDOS攻击防..[07-30]
Photoshop简单打造逼真的火焰[07-30]
Photoshop修正照片偏色的方法讨论[07-30]