You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "朱力(梧空)" <wu...@alibaba-inc.com> on 2018/11/13 12:58:18 UTC

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);