标签:number nts from 必须 lan nat invalid to_char har
which two statements are true?
A. SELECT TO_DATE(‘2019-DEC-25 15:30‘,‘YYYY-MM-DD HH24:MI‘,‘NLS_DATE_LANGUAGE=AMERICAN‘) FROM DUAL;
B. SELECT TO_CHAR(‘2019-DEC-25 03:30‘,‘YYYY-MM-DD HH24:MI‘) FROM DUAL;
C. SELECT TO_CHAR(TO_DATE(‘2019-DEC-25 03:30‘,‘YYYY-MON-DD HH12:MI‘)) FROM DUAL;
D. SELECT TO_CHAR(‘2019-DEC-25 15:30‘,‘YYYY-MM-DD HH24:MI‘,‘NLS_DATE_LANGUAGE=AMERICAN‘) FROM DUAL;
E. SELECT TO_DATE(TO_CHAR(‘2019-DEC-25 03:30‘,‘YYYY-MON-DD HH12:MI‘)) FROM DUAL;
Explanation:
TO_CHAR 函数括号内第一个值必须为日期型处理字段,不能为字符;为字符型日期格式的全部语法错误,直接排除 BDE
A. 2019-12-25 15:30:00
B. ORA-01722: invalid number
C. 2019-12-25 03:30:00
D. ORA-01722: invalid number
E. ORA-01722: invalid number
OCP考试专项 [1z0-071]-Q4:TO_CHAR/TO_DATE(2020.06.14)
标签:number nts from 必须 lan nat invalid to_char har
原文地址:https://www.cnblogs.com/askscuti/p/13127606.html