ODBC Using SQLSpecialColumns

Go back to: Code Samples
...
rc = SQLSpecialColumns(hstmt, SQL_BEST_ROWID, ...);
...
rc = SQLExecDirect(hstmt, "SELECT first_name, last_name, " +
                   "ssn, address, city, state, zip, ROWID " +
                   "FROM employees", SQL_NTS);
 
/* Fetch data and probably "hide" ROWID from the user */
...
rc = SQLExecDirect(hstmt, "UPDATE employees SET address = ? " +
                   "WHERE ROWID = ?", SQL_NTS);
/* Fastest access to the data! */




Like what you see? Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis

Book Content Copyright © 2009 by Prentice Hall PTR. All rights reserved. | Corporate Sponsor DataDirect Technologies.