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 7,205
1 DamithSL 5,114
2 Maciej Los 4,866
3 Sergey Alexandrovich Kryukov 4,747
4 Kornfeld Eliyahu Peter 4,474

Advertise | Privacy | Mobile
Web01 | 2.8.141223.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