如何使用C ++ API连接Mysql服务器? [英] How to connect Mysql server using C++ API?
本文介绍了如何使用C ++ API连接Mysql服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个关于excel的数据,需要将其转移到Mysql服务器中,然后使用C ++读取并显示.
I have a data on excel and need to shift it in Mysql server and then read and display it using C++.Can you please suggest me how to do it?
推荐答案
在此处 [此处 [
Try here[^] for MySQL links and here[^]
for Excel.
有很多关于使用C API与MySQL连接的代码示例.例如,参见如何:在Linux或Linux下使用C程序API连接MySQL服务器UNIX [ ^ ].
There are a lot of code samples about connecting with MySQL using C API. See, for instance Howto: Connect MySQL server using C program API under Linux or UNIX[^].
最简单的方法
1.将Excel文件另存为* .csv文件(以逗号分隔)
2.从该文件读取的文件,如.txt文件.
3.更新数据库并使用常规方式进行读取.
[ ^ ]
谢谢
The Easiest way to do
1. Save Excel File as *.csv file, (Comma Delimited )
2. The read from this file , like a .txt file.
3. Update Database and read from using normal way.
[^]
Thanks
这篇关于如何使用C ++ API连接Mysql服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文