免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1389 | 回复: 5
打印 上一主题 下一主题

How to use C connect to database [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-13 17:07 |只看该作者 |倒序浏览
Hi, anyone can share with me how to use C connect to database?
Please advise...

论坛徽章:
0
2 [报告]
发表于 2006-01-13 17:09 |只看该作者
The perticular database will provide a few C functions (namely socalled `API Interface') to make this work.

论坛徽章:
0
3 [报告]
发表于 2006-01-13 17:11 |只看该作者
mysql的话很简单, oracle有点烦

论坛徽章:
0
4 [报告]
发表于 2006-01-13 17:17 |只看该作者
可以分两类吧,有些如mysql的话提供API的,有些如DB2之类的,直接写SQL在C里,然后预编译下。

论坛徽章:
0
5 [报告]
发表于 2006-01-13 18:52 |只看该作者
What if my program need to support multiple type of database then what should I do? Can I write a general program which connect to the database by using ODBC instead of using the particular database api???

论坛徽章:
0
6 [报告]
发表于 2006-01-13 19:20 |只看该作者
ORACLE也不难,用PRO*C就行,预编译一下就可以,就是一条语句实现
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP