Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ 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.

Thanks in adVance,.
Posted 27-Feb-13 17:24pm
Edited 27-Feb-13 17:29pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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;
		return NULL;
	MYSQL_RES *result;
	ret=mysql_query(conn, Query.GetBuffer());
for more information go to

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920

Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100