MySQL Forums
Forum List  »  Connector/C++

Re: Outputting data from a database
Posted by: perry perry
Date: September 11, 2009 04:19PM

Ok I figured it out after searching a lot and reading some stuff. In case anyone else needs it this is how I found to do it.

res = stmt->executeQuery("SELECT name FROM player WHERE id = 1");
while (res -> next()) {
cout << res -> getString("name") << endl;
}

Options: ReplyQuote


Subject
Views
Written By
Posted
4203
September 10, 2009 04:14PM
Re: Outputting data from a database
2168
September 11, 2009 04:19PM
2069
September 17, 2009 11:09AM
2029
September 18, 2009 01:07AM
1874
September 22, 2009 07:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.