Home  >  Article  >  Database  >  C/C++封装库ocicpplib调用Oracle存储过程的方法

C/C++封装库ocicpplib调用Oracle存储过程的方法

WBOY
WBOYOriginal
2016-06-07 17:06:301034browse

工作这么多年,一直使用Mysql, Oracle数据库没有接触过, 这次要使用C/C++语言来调用Oracle的存储过程, 懒得自己去看OCI的API了

工作这么多年,一直使用Mysql, Oracle数据库没有接触过, 这次要使用C/C++语言来调用Oracle的存储过程, 懒得自己去看OCI的API了, 直接上网找别人封装的库, 最后发现了这个ocicpplib, 下载了看了一下, 还不错, 使用起来比较简单。下面就对我使用这个库来调用存储过程的例子说明一下, 对应调用其他的sql语句就不说了,, 自己看demo, 很简单的。

ocicpplib库的下载地址为 :

下面使用这个简单的存储过程来进行测试, 有两个输出参数, 一个为字符串类型, 一个为整数类型。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn