赞
踩
int temp=0; String sql="insert into tb_order(name) values("+uname+"')"; connDB.executeUpdate(sql); ResultSet rs_o = connDB.executeQuery("select @@IDENTITY as newID"); while(rs_o.next()) { temp=rs_o.getInt("newID"); }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。