PreparedStatement中有很多方法,setBoolean,setBlob,setLong,setDate,setTimestamp...
还有setObject(int parameterIndex, Object x) 是不是这个setObject可以代替所有的其它set方法,这样不是很简便吗。那效率上有什么不同?
还有setObject(int parameterIndex, Object x, int targetSqlType)这个方法,我猜是不是不指定targetSqlType,jdbc会自动通过反射,得出类型
还有setObject(int parameterIndex, Object x) 是不是这个setObject可以代替所有的其它set方法,这样不是很简便吗。那效率上有什么不同?
还有setObject(int parameterIndex, Object x, int targetSqlType)这个方法,我猜是不是不指定targetSqlType,jdbc会自动通过反射,得出类型
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货