博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C++的朋友,你都在用什么连数据库啊
阅读量:2438 次
发布时间:2019-05-10

本文共 1133 字,大约阅读时间需要 3 分钟。

说起链接数据库,不少C++的人都有着不同的经历,什么.NET,DAO,ADO,ODBC,各类数据库的API库,你是不是还头疼于跨平台的移植性呢。有啥能像Java那样来,哎....

 

那我还是劝你考虑考虑使用 SQLAPI++ Library

 

 

我只是推荐哈,毕竟SQLAPI++是需要购买的

 

Server Win32 Linux/Unix
Oracle Database Server Supported (OCI) Supported (OCI)
Microsoft SQL Server Supported (DB-Library, OLE DB) FreeTDS ODBC driver should be used
Sybase Supported (Open Client, ASE & ASA) Supported (Open Client, ASE & ASA)
DB2 Supported (DB2 CLI) Supported (DB2 CLI)
Informix Supported (Informix CLI) Supported (Informix CLI)
InterBase/Firebird Supported Supported
Centura (formerly Gupta) SQLBase Supported (CAPI) Supported (CAPI)
MySQL Supported (MySQL C API)  Supported (MySQL C API)
PostgreSQL Supported (libpq) Supported (libpq)
ODBC Supported Supported (iODBC, see )
SQLite
Supported
Supported

 

 

看看上边的表,是不是你所使用的数据库都支持了呢?!

 

其实用起来也是相当简单的。

 

 

Steps

. Connecting to database (and error handling)

. Executing a simple SQL command
. Binding input parameters
Executing a select query (and fetching result set)
Binding LongBinary, LongChar, BLob and CLob data
Fetching LongBinary, LongChar, BLob and CLob data
Multithreading support and canceling queries

 

 

顺者链接看过去,我相信,没多长时间你就掌握了。

 

 

转载地址:http://htgmb.baihongyu.com/

你可能感兴趣的文章
vs.net beta 2中利用DataGrid分页详解 (转)
查看>>
WebLogic的初步研究(2)--结构篇 (转)
查看>>
Process-Display-Process (PDP) pattern (转)
查看>>
基于构件复用的软件方法与COM支持 (转)
查看>>
DELPHI中使用API函数详解 (转)
查看>>
Single Entry Point to EJB Layer (转)
查看>>
InsideJVM(3)--Method area(方法区) (转)
查看>>
VC++初学者常见问题解惑 (转)
查看>>
dbms_stats
查看>>
Delphi实用编程经验二则 (转)
查看>>
Delphi之快速设计(程序设计篇) (转)
查看>>
piner倾力打造《构建oracle高可用环境》第一章下載
查看>>
Delphi:易混淆的概念 (转)
查看>>
关于dbms_stats 的问题
查看>>
在应用程序中开关WINDOWS系统 (转)
查看>>
STORAGE (
查看>>
PARTITION partition01
查看>>
CREATE INDEX index1 ON table1(col1)
查看>>
STORAGE (
查看>>
是分区索引
查看>>