
oracle
文章平均质量分 57
lujianxin1098
这个作者很懒,什么都没留下…
展开
-
OCI批量获取数据
最近在写OCI获取数据的功能,OCI批量获取数据遇到了一些问题。 OCIStmt* pStmt = NULL; OCIStmt* pCur = NULL; OCIHandleAlloc(m_pEnvHandle,(dvoid**)&pStmt,OCI_HTYPE_STMT,0,NULL); OCIStmtPrepare(pStmt,m_pErrHandle,(cons原创 2013-11-25 14:57:58 · 4907 阅读 · 1 评论 -
OCI调用存储过程
OCI调用存储过程: std::string sql_proc = "BEGIN com_bos.getmembers(:out_result); END;"; OCIStmt* pStmt = NULL; OCIStmt* pCur = NULL; sb2* pIndicator0 = 0; sb2* pIndicator1 = 0; sb2* pIndicator2 =原创 2013-11-06 15:22:13 · 3404 阅读 · 0 评论 -
Oracle 中oci 关于null 的处理方法
转载自:http://www.linuxidc.com/Linux/2011-02/32564p2.htm 官方文档中的描述 Input For input host variables, the OCI application can assign the following values to an indicator variable: Table 2-7 Input转载 2013-11-25 09:45:38 · 977 阅读 · 0 评论 -
OCI插入SQL语句的写法
我调用OCI插入数据库数据,总遇到插不进数据库的情况,这样写:insert into table_name values('a','2012-3-12',100); 是会调用失败的,OCI调用的SQL语句的语法感觉和PL/SQL还是有区别,我查了查,可以这样写: insert into table_name values(:c1,:c2,:c3); 但是我又遇到了一个问题,就是加入第三列是日期原创 2013-12-02 09:45:06 · 2351 阅读 · 0 评论