select seq_product.currval from dual
seq_product为你当前表的sequece
seq_product为你当前表的sequece
解决方案 »
- Struts2的Action中获取ServletActionContext.getPageContext()==null
- hibernate操作数据库遇到的时间问题!!!!!!!!!!!!
- 求Aqua Data studio自动弹出网页解决方法
- 哪里有Hibernate的项目的源代码下载
- web.xml文件为何在weblogic启动时会重新生成,从而覆盖现有的
- 在谈 怎样连接sql server 2000
- 分布式与群集是否必然
- *********如何在Vector里存储EJB对象?*************
- 请问怎样自由修改JTable中表格的行高度?
- j2ee Application Client生成.jar文件时的问题
- jboss下使用log4j的问题
- 奇怪的数据库乱码问题,困扰小弟好多天了,望各位拔刀相助
select seq_product.currval from dual
seq_product为你当前表的sequece
-----------------
这样的不行的,seq_product.currval 不在此会话中,我在insert时有order_goodsID.nextval这个东西,但是取回来取不了……
stmt.executeUpdate(sql,Statement.RETURN_GENERATED_KEYS);
rs = stmt.getGeneratedKeys();
if(rs.next()){
key = rs.getInt(1);
}