Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Determine if JOIN resulted in any columns
  2. select * from AA left outer join BB on AA.keyField = BB.keyField
  3.   where keyField = "123"
  4.        
  5. String valueString = rs.getString("BB.keyField");
  6.        
  7. select AA.id as aId, AA.name as aName, BB.id as bId, BB.name as bName from ...
  8.        
  9. rs.getString("aId");
  10. rs.getString("bName");
  11. ...