Click here to Skip to main content
12,553,962 members (62,547 online)
Rate this:
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 16:24pm
Updated 27-Feb-13 16: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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2016
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