JDBC Complex Query

Go back to: Code Samples
ResultSet WSrs = WSs.executeQuery(
   "SELECT first_name, last_name, ssn, address, city, " + 
   "state, zip FROM employees");
 
// fetch data using complex query
...
WSs.executeQuery(
   "UPDATE employees SET address = ? " +
   "WHERE first_name = ? and last_name = ? and ssn = ? " +
   "and address = ? and city = ? and state = ? and zip = ?");




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.