Oracle培训教程:数据函数和日期单行函数语句
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询数值函数
Round
select round(412,-2) from dual;
select round(412.313,2) from dual;
Mod
Trunc
select trunc(412.13,-2) from dual;
日期函数
Months_between()
select months_between(sysdate,hiredate) from emp;
Add_months()
select add_months(sysdate,1) from dual;
Next_day()
select next_day(sysdate,'星期一') from dual;
Last_day
select last_day(sysdate) from dual;