Java MySQL query named parameters? -
is there way have named parameters in java mysql query?
like this:
select * table col1 = :val1 , col2 = :val2
instead of this:
select * table col1 = ? , col2 = ?
update: im' using java.sql.*
, interested in alternatives capable of this.
maybe hibernate choice you. provided query style description, , it's powerful , convenient persistence work you'll feel cool. e.g
query query = sesion.createquery("from student s s.age = :age"); query.setproperties(student);
Comments
Post a Comment