MySQL Forums
Forum List  »  Connector/C++

Re: Extracting results from SELECT count(*) query
Posted by: Ulf Wendel
Date: August 28, 2009 12:22PM

Please check the examples. You need to move the cursor of the resultset to the first record before you can fetch the result. Result column indexing starts at 1.

You can find examples either in the source distribution in the examples/ directory or in some articles from the MySQL Developer Zone, located at dev.mysql.com

Some links:

http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-results.html
(... what's missing is in examples/*.cpp in the source distribution ...)

http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html
http://dev.mysql.com/doc/refman/5.1/en/connector-cpp.html

Ulf

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Extracting results from SELECT count(*) query
3905
August 28, 2009 12:22PM


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.