再问一个# Java - 爪哇娇娃
b*k
1 楼
不是JAVA programmer
被逼着改别人的一个 program
问题比较多, 也比较低级哈
我想 connect to Oracle database to get a value, and put into xxx.
String query = "select 'xyz' from dual" ;
Statement statement = conn.createStatement () ;
ResultSet rs = statement.executeQuery (query) ;
String xxx = rs.getString("????"); <== 放 "????"的地方, can I put
anything there?
被逼着改别人的一个 program
问题比较多, 也比较低级哈
我想 connect to Oracle database to get a value, and put into xxx.
String query = "select 'xyz' from dual" ;
Statement statement = conn.createStatement () ;
ResultSet rs = statement.executeQuery (query) ;
String xxx = rs.getString("????"); <== 放 "????"的地方, can I put
anything there?