일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- sencha touch
- JSON
- rowspan
- oracle
- GPS
- phonegap
- PHP
- appspresso
- 가우스
- 선택적조인
- node.js
- tomcat
- JDOM
- Ajax
- ibsheet
- WebLogic
- MySQL
- PLSQL
- Struts
- Eclipse
- 전자정부프레임워크
- swingx
- MFC
- jsr 296
- Android
- dock
- jQuery
- Google Map
- iBATIS
- Spring
- Today
- Total
Where The Streets Have No Name
Oracle Date How to Add Day , Hour, Minute, Second to a Date Value in Oracle 본문
Oracle Date How to Add Day , Hour, Minute, Second to a Date Value in Oracle
highheat 2013. 6. 18. 17:59Oracle Date How to Add Day , Hour, Minute, Second to a Date Value in Oracle
Oracle add Days
Oracle add Hour
Oracle add Minute
Oracle add second
-- # Add a day
select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" ,
to_char(sysdate +1,'dd-mm-yyyy hh24:mi:ss') One_day from dual ;
Todays-date ONE_DAY
------------------- -------------------
05-01-2012 12:55:52 06-01-2012 12:55:52
-- # Add an hour
select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" ,
to_char(sysdate +1/24,'dd-mm-yyyy hh24:mi:ss') One_hour from dual ;
Todays-date ONE_HOUR
------------------- -------------------
05-01-2012 12:56:06 05-01-2012 13:56:06
-- # Add an Minute
select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" ,
to_char(sysdate +1/(24*60),'dd-mm-yyyy hh24:mi:ss') One_minute from
dual ;
Todays-date ONE_MINUTE
------------------- -------------------
05-01-2012 12:56:18 05-01-2012 12:57:18
-- # Add Second
select to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" ,
to_char(sysdate +1/(24*60*60),'dd-mm-yyyy hh24:mi:ss') One_second from
dual ;
Todays-date ONE_SECOND
------------------- -------------------
05-01-2012 12:56:27 05-01-2012 12:56:28
출처 : http://anuj-singh.blogspot.kr/2012/01/date-how-to-add-day-hour-minute-second.html