是否有比Oracle * C/C++更智能的Oracle预处理器?
有人知道是否有与C一起使用C/C++的预处理器,这将允许我编写类似于以下内容的C或C代码: void populateTableList(GuiList* tableList) { for users in ( select table_name,owner,tablespace_name from dba_tables) { tableList -> addRow( users.table_name,users.owner,users.tablespace_name); } } 我正在寻找的主要功能是 >准自动声明/定义所选值(此处为:users.table_name,users.owner和users.tablespace_name),类似于PL / SQL for循环语句和 有这样的事吗? 解决方法根据以下9,10,11页,没有其他C/C++.PRO * C/C++以外的“预编译器”.有一个C/C++编程 语言接口称为OCI / OCCI,但从技术上讲,这不是预编译器 此页面指出“OCI程序未预编译”: http://www.orafaq.com/wiki/Oracle_Call_Interfaces 这些页面列出了可用的C/C++编译器工具: 9I预编译页面: This page lists PRO*C/C++,and the Non C precompilers: PRO*COBOL,PRO*FORTRAN,SQL for ADA,the OCI 10G预编译页面:参见部件号B25416-02 9I到11个预编译器说明: (This page Does not list any other C/C++ precompilers not already listed) 问Tom OCI / PRO * C比较: This page shows an example that has an SQL statement with invalid syntax being passed to OCI,through OCIStmtPrepare() and the compile does not error. This means that at the time of the OCI compile a complete syntax check of the SQL statement is not done which is consistent with what I have seen. 此页面指出“OCI和预编译器支持(..)”暗示 http://www.oracle.com/technetwork/database/features/oci/index.html 看起来你所拥有的代码中嵌入了SQL.去检查这个代码在编译时的有效性需要预编译器有权访问数据字典(我知道PRO * C可以访问)你所拥有的语法不同于其他ORACLE上面列出的C/C++支持工具do). (编辑:青岛站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |