JDBC Using GetColumns

Go back to: Code Samples
ResultSet WSrc = WSc.getColumns(... "UnknownTable" ...);
// getColumns() will generate a query to 
// the system catalogs and possibly a join
// that must be prepared, executed, and produce
// a result set
...    
WSrc.next();
string Cname = getString(4);
...    
// user must retrieve N rows from the server 
// N = # result columns of UnknownTable
// result column information has now been obtained




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.