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
4224
September 10, 2009 04:14PM
Re: Outputting data from a database
2191
September 11, 2009 04:19PM
2088
September 17, 2009 11:09AM
2046
September 18, 2009 01:07AM
1897
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.