osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get AvaticaParameter when PreparedStatement used?



Dear guys, 

in my case, how can I get the real value of "?0" and "?1"  ?

String strsql = "select * from t1 where c1 = ? and c2 =?";
ps = pconn.prepareStatement(strsql);

ps.setString(1,"1");
ps.setLong(2,2);