如何使用visual studio c ++和sqlapi ++库从数据库中提取数据 [英] how to extract data from database using visual studio c++ and sqlapi++ library

查看:225
本文介绍了如何使用visual studio c ++和sqlapi ++库从数据库中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我担心的是将用户插入的用户名导出到数据库,让我们说; dbname:abc,login:abcd,密码:abcde

并再次提醒我使用SQLAPI进行连接而不是ODBC或ADO。

任何人都可以帮我处理代码从数据库中提取数据然后在visual studio中使用它c ++

my concern is to export the Username Inserted by the user to the database,lets say; dbname:abc,login:abcd,password:abcde
and reminder again that i am using SQLAPI for the connection not ODBC or ADO.
can anybody help me with the code to extract data from database and then use it in visual studio c++

推荐答案

你有没有通过文档 [ ^ ]。



如何连接数据库并执行SELECT查询等命令有一些很好的例子。例如,执行选择查询(并获取结果集) [ ^ ]
Have you got through the documentation[^].

There are some good examples how to connect to the database and execute commands like SELECT queries. For example Executing a select query (and fetching result set)[^]


这篇关于如何使用visual studio c ++和sqlapi ++库从数据库中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆