开发者

sql add year statement

I have sysdate in one co开发者_如何学JAVAlumn and I want to add two years in another. I would not like to use sysdate + 365

Is there any other way?


select add_months(sysdate, 12) from dual


SELECT your_date_column + interval '2' year
FROM dual
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜