标签:style blog class code java color
上代码
String sql = "BEGIN insert into itil_task_plan (PLAN_CODE) values (?) returning id into ?; END;"; CallableStatement ps = conn.prepareCall(sql); ps.setString(1, taskPlan.getPlanCode()); ps.registerOutParameter(2, Types.VARCHAR); row = ps.executeUpdate(); String zhujian = ps.getString(2);
zhujian就是主键,用
CallableStatement
Jdbc获取oracle中guid主键,布布扣,bubuko.com
标签:style blog class code java color
原文地址:http://www.cnblogs.com/winkey4986/p/3714339.html