梦幻之旅

DEBUG - 天道酬勤

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  671 随笔 :: 6 文章 :: 256 评论 :: 0 Trackbacks
<property name="age" formula="(select round((to_number(sysdate - nvl(birth_day, sysdate))/360)) from es_sms_customer a where a.id=ID)"/>
 
<property name="age" formula="(select round((to_number(sysdate - nvl(BIRTH_DAY, sysdate))/360)) from dual)"/>
formula 是一个很有用的东东
posted on 2011-01-09 20:32 HUIKK 阅读(638) 评论(0)  编辑  收藏 所属分类: Hibernate

只有注册用户登录后才能发表评论。


网站导航: