`
siruoxian
  • 浏览: 231144 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

struts2+ibators oralce设置ID自增长

    博客分类:
  • java
 
阅读更多

  注:这是在ibator的sqlmap中应用的

<selectKey resultClass="integer" keyProperty="id">
     select (case when max(id) is null then 1 else max(id)+1 end)
  from TASK_PLAN
 </selectKey>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics