List:MySQL++« Previous MessageNext Message »
From:Benjamin Liu Date:July 20 2005 11:10pm
Subject:Newbie query use help.
View as plain text  
Hi folks,

I'm a humble non-programmer who just wants to read a float table value into
a float variable.
----------------------------------------------------------------------------
-------------
 Query query = con.query();
 query << "select kwh from basic120 order by time desc limit"; // Last value
this column.
 mysqlpp::ResUse res = query.use();
 ???
 float kwh = ???
----------------------------------------------------------------------------
-------------
I've tried using the method Fields but can't get it to compile.

Thanks,

Benjamin Liu


Thread
Newbie query use help.Benjamin Liu21 Jul
  • Re: Newbie query use help.Chris Frey22 Jul