用于基本查询的connector / c ++ vs mysql.h vs mysql ++ [英] connector/c++ for basic queries vs mysql.h vs mysql++
本文介绍了用于基本查询的connector / c ++ vs mysql.h vs mysql ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I can find nothing on mysql.h, next to nothing on mysql++, and everything about connector/c++ but am still confused.
If I'm only interested in simple queries, SELECTing and UPDATEing WHEREing the PRIMARY and only straight INSERTs & DELETEs without WHEREs, in other words relying 100% on c++ for all sorting/logic, is there any benefit to using anything other than mysql.h? No database creation, transactions, etc from code.
感谢adVance,。
Thanks in adVance,.
推荐答案
没有像select函数或insert函数这样的函数。
你必须使用mysql_query执行所有函数(C)。
这里是一个如何执行查询的简单示例:
There is no such function like select function or insert function.
You will have to execute all function using mysql_query(C).
here is a simple example of how to execute a query:
int ret;
StringA Query;
Query="SELECT EVERYTHING FROM EVERYWHERE WHERE NOBODY LIKE 'YOU'";
if(conn==NULL)
return NULL;
MYSQL_RES *result;
ret=mysql_query(conn, Query.GetBuffer());
欲了解更多信息,请访问google.com
for more information go to google.com
这篇关于用于基本查询的connector / c ++ vs mysql.h vs mysql ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文