- 특정 시간이후의 데이터를 선택(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

'Dev > db' 카테고리의 다른 글

SQL & SQL*PLUS Syntax 정리  (1) 2009.05.19
PL/SQL 시작하기  (248) 2008.09.25
그룹 함수[COUNT, MAX, MIN, AVG, SUM, GROUP]  (1) 2008.09.19
Oracle 10g scott계정 락풀기  (1) 2008.09.19
DB 에 테이블 복사 하는 방법  (3) 2008.07.24

+ Recent posts