I was trying to parameterize value in Preparedstatement as below like
PreparedStatement ps = Connection.prepareStatement("select col_a,? from TABLE_A");
ps.setString(1,"myValue");
ps.execute();
I want the following return
COL_A myValue
-----------------
val1 myValue
val2 myValue
which is comparable to a plain sql as below.
select col_a,'myValue'
from TABLE_A