如何使用visual studio 2012在c ++中连接数据库

如何使用visual studio 2012在c ++中连接数据库

问题描述:

我还没有学习数据库,但我的学期项目需要数据库,所以请帮我连接数据库。

I haven't study database yet but my semester project required database, so please help me in connecting to database.

hi,

如果你提到你感兴趣的是哪个数据库会更有帮助。

Oracle是一个对象关系型数据库管理系统。要连接Oracle数据库,您可以使用OCI。查看此处 [ ^ ]了解更多信息。你可能还需要谷歌更多。



MySql是另一个受欢迎的数据库。我发现这个链接 [ ^ ]很有帮助。

这些接口库并非特定于VS2012,只是通过文献来确定哪些版本与您选择的IDE兼容。

您可能会发现它有助于启动通过构建示例程序并运行它们。



希望这有帮助!

it would have been more helpful had you mentioned which database are you interested in.
Oracle is an object-relational database management system. To connect with an Oracle database you can use OCI. Look here[^] for more. You might still have to google more on this.

MySql is another popular database. I found this link[^]helpful.
These interfacing libraries are not specific to VS2012 but just go through the literature to make sure which versions are compatible with your IDE of choice.
You might find it helpful to start by building the sample programs and running them.

hope this helps !