Hi All,
I'd like to know how one is supposeed to iterate through rows of resulting 
database. For example if I have following code the resulting dataset is 
returned into r (row) variable, but I don't know how iterate through it.Any 
help will be appreicated,
Regards,
int main(){    session sql(firebird, "service=D:/New_DB.FDB user=SYSDBA 
password=masterkey");
    row r;    sql << "select * from materials", into(r);
    std::string m_name;    double ystr;
    r >> m_name >> ystr >> ystr;
    cout << "Hello world!" << endl;
    return 0;}
                                          
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
soci-devel mailing list
soci-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/soci-devel

Reply via email to