首页 > 数据库 > Oracle > OCP 1Z0-051-85
Which statements are true regarding data type conversion in expressions used in queries? (Choose all that apply.)
答案:(D、E)
解析:
|
A(X),隐式转换可以正常执行 scott@TESTDB11>select empno, ename, sal from emp where sal = '0800'; B(X),不符合默认的日期格式,隐式类型转换会失败。 C(X),可以进行隐式转换 scott@TESTDB11>select concat(deptno, hiredate) from emp; CONCAT(DEPTNO,HIREDATE) ---------------------------------------------------------- 2017-DEC-80 3020-FEB-81 3022-FEB-81 |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1163104/ ,如需转载,请注明出处,否则将追究法律责任。