user-0 提问: -----------------在linux下使用C语言操作数据库有哪些方法？-----------------

回复:
user: user-1
content: 引用 13 楼 Zidane_2014 的回复:顶！ 能否只使用相应的库而不一定安装客户端吗？ 安装客户端的本质是拷贝和注册几个dll

user: user-0
content: 顶！ 能否只使用相应的库而不一定安装客户端吗？

user: user-0
content: 自顶！！

user: user-0
content: 引用 10 楼 zhao4zhong1 的回复:这个是oracle文件夹下的demo文件夹下的例子代码。我想实现对远程数据库的增删改，那么我本地必须安装客户端才能使用例如OCI、 PRO*C、 ODBC吗？

user: user-1
content: 这个是oracle文件夹下的demo文件夹下的例子代码。

user: user-0
content: 引用 5 楼 zhao4zhong1 的回复:请楼主打开demo目录下的例子代码亲自查看之： Program Name                              Features Illustrated cdemo81.c                                 Using basic SQL processing with release 8 and later functionality. cdemo82.c                                 Performing basic processing of user-defined objects. cdemocor.c                                Using complex object retrieval (COR) to improve performance. cdemodr1.c,cdemodr2.c,cdemodr3.c          Using INSERT/UPDATE/DELETE statements with RETURNING clause used with basic datatypes, LOBs and REFs. cdemodsa.c                                Describing information about a table. cdemodsc.c                                Describing information about an object type. cdemofo.c                                 Registering and operating application failover callbacks. cdemolb.c                                 Create and insert LOB data and then read, write, copy, append and trim the data. cdemolb2.c                                Writing and reading of CLOB/BLOB columns with stream mode and callback functions. cdemolbs.c                                Writing and reading to LOBs with the LOB buffering system. cdemobj.c                                 Pinning and navigation of REF object. cdemorid.c                                Using INSERT, UPDATE, DELETE statements and fetches to get multiple rowids in one round-trip. cdemoses.c                                Using session switching and migration. cdemothr.c                                Using the OCIThread package. cdemosyev.c                               Registering predefined subscriptions and specifying a callback function to be invoked for client notifications (for more information about Advanced Queuing, see Oracle Streams Advanced Queuing User’s Guide and Reference). ociaqdemo00.c,ociaqdemo01.c,ociaqdemo02.c Advanced queuing. cdemodp.c,cdemodp_lip.c                   Loading data with the direct path load functions. cdemdpco.c                                Loading a column object with the direct path load functions. cdemdpno.c                                Loading a nested column object with the direct path load functions. cdemdpin.c                                Loading derived type (inheritance) - direct path. cdemdpit.c                                Loading an object table with inheritance - direct path. cdemdpro.c                                Loading a reference with the direct path load functions. cdemdpss.c                                Loading SQL strings with the direct path load functions. cdemoucb.c,cdemoucbl.c                    Using static and dynamic user callbacks. cdemoupk.c,cdemoup1.c,cdemoup2.c          Using dynamic user callbacks with multiple packages. cdemodt.c                                 Datetime and interval example. cdemosc.c                                 Scrollable cursor. cdemol2l.c                                Accesses LOBs using the LONG API. cdemoin1.c                                Inheritance demo which modifies an inherited type in a table and displays a record from the table. cdemoin2.c                                Inheritance demo to do attribute substitutability. cdemoin3.c                                Inheritance demo that describes an object, inherited types, object tables, and a sub-table. cdemoanydata1.c                           Anydata demo. Inserts and selects rows to and from anydata table. cdemoanydata2.c                           Anydata demo. Creates a type piecewise using OCITypeBeginCreate() and then describes the new type created. cdemosp.c                                 Session pooling. cdemocp.c                                 Connection pooling. cdemocpproxy.c                            Connection pooling with proxy functionality. cdemostc.c                                Statement caching. cdemouni.c                                Program for OCI UTF16 API. nchdemo1.c                                Shows nchar implicit conversion feature and codepoint feature. 能说详细点吗？不是太懂。

user: user-0
content: 引用 6 楼 Oringe_new 的回复:oci odbc Proc*c? 引用 7 楼 mayday_xin 的回复:直接操作的话，oci就可以了我想实现的是远程对数据库的增删改，能否不安装oracle客户端，直接使用你们所建议的方法操作？

user: user-2
content: 直接操作的话，oci就可以了

user: user-3
content: oci odbc Proc*c?

user: user-1
content: 请楼主打开demo目录下的例子代码亲自查看之： Program Name                              Features Illustrated cdemo81.c                                 Using basic SQL processing with release 8 and later functionality. cdemo82.c                                 Performing basic processing of user-defined objects. cdemocor.c                                Using complex object retrieval (COR) to improve performance. cdemodr1.c,cdemodr2.c,cdemodr3.c          Using INSERT/UPDATE/DELETE statements with RETURNING clause used with basic datatypes, LOBs and REFs. cdemodsa.c                                Describing information about a table. cdemodsc.c                                Describing information about an object type. cdemofo.c                                 Registering and operating application failover callbacks. cdemolb.c                                 Create and insert LOB data and then read, write, copy, append and trim the data. cdemolb2.c                                Writing and reading of CLOB/BLOB columns with stream mode and callback functions. cdemolbs.c                                Writing and reading to LOBs with the LOB buffering system. cdemobj.c                                 Pinning and navigation of REF object. cdemorid.c                                Using INSERT, UPDATE, DELETE statements and fetches to get multiple rowids in one round-trip. cdemoses.c                                Using session switching and migration. cdemothr.c                                Using the OCIThread package. cdemosyev.c                               Registering predefined subscriptions and specifying a callback function to be invoked for client notifications (for more information about Advanced Queuing, see Oracle Streams Advanced Queuing User’s Guide and Reference). ociaqdemo00.c,ociaqdemo01.c,ociaqdemo02.c Advanced queuing. cdemodp.c,cdemodp_lip.c                   Loading data with the direct path load functions. cdemdpco.c                                Loading a column object with the direct path load functions. cdemdpno.c                                Loading a nested column object with the direct path load functions. cdemdpin.c                                Loading derived type (inheritance) - direct path. cdemdpit.c                                Loading an object table with inheritance - direct path. cdemdpro.c                                Loading a reference with the direct path load functions. cdemdpss.c                                Loading SQL strings with the direct path load functions. cdemoucb.c,cdemoucbl.c                    Using static and dynamic user callbacks. cdemoupk.c,cdemoup1.c,cdemoup2.c          Using dynamic user callbacks with multiple packages. cdemodt.c                                 Datetime and interval example. cdemosc.c                                 Scrollable cursor. cdemol2l.c                                Accesses LOBs using the LONG API. cdemoin1.c                                Inheritance demo which modifies an inherited type in a table and displays a record from the table. cdemoin2.c                                Inheritance demo to do attribute substitutability. cdemoin3.c                                Inheritance demo that describes an object, inherited types, object tables, and a sub-table. cdemoanydata1.c                           Anydata demo. Inserts and selects rows to and from anydata table. cdemoanydata2.c                           Anydata demo. Creates a type piecewise using OCITypeBeginCreate() and then describes the new type created. cdemosp.c                                 Session pooling. cdemocp.c                                 Connection pooling. cdemocpproxy.c                            Connection pooling with proxy functionality. cdemostc.c                                Statement caching. cdemouni.c                                Program for OCI UTF16 API. nchdemo1.c                                Shows nchar implicit conversion feature and codepoint feature.

user: user-0
content: 引用 3 楼 cheng7068 的回复:可以采用odbc底层接口函数，或者直接采用oci进行开发都可以还需要下载相应的库吗？

user: user-4
content: 可以采用odbc底层接口函数，或者直接采用oci进行开发都可以

user: user-0
content: 引用 1 楼 u012421456 的回复:什么数据库？oracle

user: user-5
content: 什么数据库？