oracle quiz3 DB_ORACLE

http://www.oracleclub.com/article/52177

with cal as
(
select '1900' + level - 1 as year
from   dual
connect by level <= 400
)

select year, mod(year, 4), mod(year, 100), mod(year, 400), 
       decode(0, mod(year,400), 'Y', mod(year, 100), 'N', mod(year, 4), 'Y', 'N') syear
from   cal
;



트랙백

이 글과 관련된 글 쓰기 (트랙백 보내기)
TrackbackURL : http://jwlee1728.egloos.com/tb/1982186 [도움말]

덧글

댓글 입력 영역