#include #include "ocilib.hpp" using namespace ocilib; int main(void) { try { Environment::Initialize(); Connection con("db", "usr", "pwd"); Statement st(con); st.Execute("select rownum, cursor(select sysdate from dual) from (select 1 from dual connect by level <= 10)"); Resultset rs = st.GetResultset(); while (rs++) { Statement st2 = rs.Get(2); Resultset rs2 = st2.GetResultset(); while (rs2++) { std::cout << "Table : " << rs.Get(1) << ", Date : " << rs2.Get(1) << std::endl; } } } catch (std::exception &ex) { std::cout << ex.what() << std::endl; } Environment::Cleanup(); return EXIT_SUCCESS; }