Advertisement
Guest User

Untitled

a guest
Aug 29th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. select 'colname' from schemaname.tablename
  2.  
  3. String url = "jdbc:db2://host:50000/yourdb";
  4. Properties props = new Properties();
  5. props.setProperty("useJDBC4ColumnNameAndLabelSemantics", "2");
  6. // set other required properties
  7. Connection c = DriverManager.getConnection(url, props);
  8.  
  9. String url = "jdbc:db2://host:50000/yourdb:useJDBC4ColumnNameAndLabelSemantics=2;";
  10. // set other required properties
  11. Connection c = DriverManager.getConnection(url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement