문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
dbms:oracle:devel:regexp:regexp_like [2012/04/04 00:41] starlits 새로 만듦 |
dbms:oracle:devel:regexp:regexp_like [2016/02/18 22:49] starlits |
||
---|---|---|---|
줄 7: | 줄 7: | ||
where regexp_like(email,' | where regexp_like(email,' | ||
</ | </ | ||
- | + | - 이메일 형식체크에 quotes 를 포함하여 아래의 구문을 따른다. < | |
+ | ' | ||
+ | </ | ||
+ | - 날짜형식 체크 < | ||
+ | ALTER SESSION SET NLS_LANGUAGE=' | ||
+ | with t as ( | ||
+ | select ' | ||
+ | select ' | ||
+ | select ' | ||
+ | select ' | ||
+ | ) | ||
+ | select str | ||
+ | , to_date(str, | ||
+ | then ' | ||
+ | when regexp_like(str,' | ||
+ | then ' | ||
+ | when regexp_like(str,' | ||
+ | then ' | ||
+ | end) as date1 | ||
+ | from t; | ||
+ | </ | ||
+ | with t as ( | ||
+ | select ' | ||
+ | select ' | ||
+ | select ' | ||
+ | select ' | ||
+ | ) | ||
+ | select str | ||
+ | , to_date(str, | ||
+ | then ' | ||
+ | when regexp_like(str,' | ||
+ | then ' | ||
+ | when regexp_like(str,' | ||
+ | then ' | ||
+ | | ||
+ | from t; | ||
+ | </ |