- 특정 시간이후의 데이터를 선택(head005는 sysdate)
select * from mdm_if_material where head005 > to_date('200808122018','yyyymmddhh24mi') order by head005 desc
- 선택한 데이터중에서 가장 최근의 데이터 1개만 선택(head005는 sysdate)
select * from (select * from eai.mdm_if_material_vl_exp where prop001='testData' order by head005 desc) where rownum = 1
select * from mdm_if_material where head005 > to_date('200808122018','yyyymmddhh24mi') order by head005 desc
- 선택한 데이터중에서 가장 최근의 데이터 1개만 선택(head005는 sysdate)
select * from (select * from eai.mdm_if_material_vl_exp where prop001='testData' order by head005 desc) where rownum = 1
'프로그래밍 > db' 카테고리의 다른 글
| 오라클 쿼리 (0) | 2008/08/12 |
|---|---|
| DB 에 테이블 복사 하는 방법 (0) | 2008/07/24 |


이올린에 북마크하기
이올린에 추천하기

