행위

오라클 데이터 유형 체크

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 7월 19일 (금) 09:25 판 (새 문서: * 12c 추가된 기능 = 데이터 유형 Vailidation 체크 * 체크 유형 - binary_double - binary_float - date - interval day to second - interval year to month -...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
thumb_up 추천메뉴 바로가기


  • 12c 추가된 기능

= 데이터 유형 Vailidation 체크

  • 체크 유형
 - binary_double
 - binary_float
 - date
 - interval day to second
 - interval year to month
 - number
 - timestamp
 - timestamp with time zone


with tb_a as(
          select 1 , '01/01/2016' is_this_a_date from dual
union all select 2 , 'abc'  from dual 
union all select 3 , '20150101'  from dual
union all select 3 , '01-jan-2016'  from dual
)

select t.*
  from tb_a t
 where validate_conversion(is_this_a_date as date) = 1;