Page 1 of 1

ODBC Multiple Result sets

Posted: 08 Oct 2013, 22:19
by frankeden
If I have:

Statement select(session);
select << "SELECT Name,Address,Age FROM Person; SELECT Age FROM Person", now;
RecordSet rs(select);
std::size_t cols = rs.columnCount();

I expect cols to be 3, my question is, how can I move to the second recordset, where I expect the column count to be just 1?