說我有這樣的例如查詢:一個ResultSet可以處理多個表嗎?
select b.id, b.desc, c.context_desc, d.age
from
index a, events b, contexts c, user d
where
a.id = b.id and a.context_id = c.context_id and a.user_id = d.user_id
order by b.id
在Java中,可以將結果集處理多個表(假設列名都是唯一的)?
int id = resultSet.getInt("id");
String desc = resultSet.getString("desc");
String context_desc = resultSet.getString("context_desc");
int age = resultSet.getInt("age");