2,596
社区成员
发帖
与我相关
我的任务
分享
// create table t2 ( id int not null, d numeric(10,6) null, primary key(id))
PreparedStatement ps =con.prepareStatement("insert into t2( id, d) values (?,?)");
ps.setObject( 1, new Integer(3), Types.INTEGER);
ps.setObject( 2, new Double(0.56), Types.NUMERIC);
ps.execute();
ps.close();