0 Replies Latest reply: Aug 31, 2012 7:48 AM by 959304 RSS

    OCCI-Resultset caching into structure pointer

    959304
      Hi,

      How do we cache the values of a query into a structure pointer??

      for eg:

      A_t *pstmtInfo    = NULL;
      ResultSet *rs;

      string sql = select * from ABC;
      sqlstmt->setSQL(sql);
      rs = sqlstmt->executeQuery();
      while(rs->next()== true)
      {
      // data to be stored
      }


      Can someone explain how to store the data and how to increment pointer such that we can store n number of rows