List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 16 2005 6:09pm
Subject:Re: how to fetch a row?
View as plain text  
ZeeGeek wrote:
> 
> mysqlpp::Connection con(false);
> con.connect("mysql_cpp_data", "localhost", "test", "test");
> mysqlpp::Query query = con.query();
> query << "select * from stock";
> mysqlpp::ResUse res = query.use();
> mysqlpp::Row row;
> while (row = res.fetch_row()) {
>         std::cout << row["item"] << std::endl;
> }

I replaced the code in usequery's try block with your code, and it 
produced just what I expected it to.  Try that, and rebuild the examples 
within the MySQL++ tree.
Thread
how to fetch a row?ZeeGeek15 Aug
  • Re: how to fetch a row?Warren Young15 Aug
Re: how to fetch a row?Warren Young16 Aug
  • Re: how to fetch a row?ZeeGeek17 Aug