码迷,mamicode.com
首页 > 其他好文 > 详细

8.01 加减日、月、年

时间:2017-09-14 23:48:17      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:day   interval   nbsp   val   select   minus   date   red   tno   

select hiredate - interval 5 day as   hd_minus_5D,
             hiredate + interval 5 day as   hd_plus_5D,
             hiredate - interval 5 month as hd_minus_5M,
             hiredate + interval 5 month as hd_plus_5M,
             hiredate - interval 5 year as  hd_minus_5Y,
             hiredate + interval 5 year as  hd_plus_5Y
from emp
where deptno=10;   

8.01 加减日、月、年

标签:day   interval   nbsp   val   select   minus   date   red   tno   

原文地址:http://www.cnblogs.com/liang545621/p/7523292.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!