List:MySQL++« Previous MessageNext Message »
From:Eric Sepich Date:December 28 2010 11:58pm
Subject:'vector<mysql::Row> todayslive;' question.
View as plain text  
I have this working so far:

  vector<Row> todayslive;
  Query querya = conn.query();
  querya << "select * from sports_schedule where tf_air_date='" <<
todaysdate + "' " << "and tf_live_tape_delay='Live'";
  querya.storein(todayslive);
  cout << todayslive.size() << endl;

Now I need to access my fields inside 'todayslive.at(0)' and 'todayslive.at(1).
First I only want 'tf_database_key'. Then I want all the fields. I've been
reading the manual but there are no code examples detailing how to use the
member functions of <mysqlpp::Row>. Has someone out there done this before?

Thank you kindly,
Eric

Thread
'vector<mysql::Row> todayslive;' question.Eric Sepich29 Dec
  • Re: 'vector<mysql::Row> todayslive;' question.Warren Young29 Dec