Click here to Skip to main content
13,139,114 members (60,656 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
v4

1 solution

Rate this: bad
 
good
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;
    Query="SELECT EVERYTHING FROM EVERYWHERE WHERE NOBODY LIKE 'YOU'";
if(conn==NULL)
    return NULL;
MYSQL_RES *result;
ret=mysql_query(conn, Query.GetBuffer());


for more information go to google.com
  Permalink  

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 |
Web04 | 2.8.170915.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2017
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