会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
郝小爬
博客园
首页
新随笔
联系
管理
订阅
2015年10月2日
SQL语句计算周岁
摘要: 计算周岁的SQL语句:select trunc(months_between(sysdate,date'1992-12-8')/12) 年龄 from dual;用到两个函数:trunc和months_betweentrunc函数两种用法:1、trunc(number1,number2),只舍不入取...
阅读全文
posted @ 2015-10-02 13:19 郝小爬
阅读(2958)
评论(0)
推荐(1)
编辑
公告