网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
使用哪些函数可以执行显式数据类型转换?()
- A、ROUND、TRUNC、ADD_MONTHS
- B、LENGTH、SUBSTR、LPAD、TRIM
- C、TO_CHAR、TO_DATE、TO_NUMBER
- D、NVL、NVL2、NULLIF
参考答案
更多 “使用哪些函数可以执行显式数据类型转换?()A、ROUND、TRUNC、ADD_MONTHSB、LENGTH、SUBSTR、LPAD、TRIMC、TO_CHAR、TO_DATE、TO_NUMBERD、NVL、NVL2、NULLIF” 相关考题
考题
在Oracle中,执行下面的语句:SELECTceil(-97.342),floor(-97.342),-123.01-124round(-97.342),trunc(-97.342)FROMdual;哪个函数的返回值不等于-97()
A.ceilB.floorC.roundD.trunc
考题
下列关于ORACLE的to_date函数和to_char函数,描述正确的是()A.to_char函数是将字符串数据转换为日期数据B.to_date函数是将字符串数据转换为日期数据C.to_char函数是将日期数据转换为字符数据D.to_date函数是将日期数据转换为字符数据
考题
对数值型变量V_NUM,进行四舍五入,保留小数点后两位,以下操作正确的是()
A.SUBSTR(V_NUM,1,2)B.TRUNC(V_NUM,2)C.TRUNC(V_NUM,-2)D.ROUND(V_NUM,2)E.ROUND(V_NUM,-2)
考题
查询出EMP表中1982年及以后入职的员工信息()(注:字段hiredate为入职日期,数据类型为DATE型)A、select * from emp where hiredate='19820101';B、select * from emp where hiredate=to_char('19820101','YYYYMMDD');C、select * from emp where to_date(hiredate,'YYYYMMDD')='19820101';D、select * from emp where to_char(hiredate,'YYYYMMDD')='19820101';
考题
要在Oracle中使用日期信息的格式掩码。下列()情形不适合这个格式掩码。A、to_date()B、to_char()C、altersessionsetnls_date_formatD、to_number()
考题
下列函数全不部为多行【即组函数】的是()A、GROUP,HAVING,AVG,DISTINCTB、COUNT,CEIL,MAX,CONCATC、ORDER,MIN,WHERE,SUMD、NVL,ORDER,SUBSTR,ORDER
考题
对数值型变量V_NUM,进行四舍五入,保留小数点后两位,以下操作正确的是()A、SUBSTR(V_NUM,1,2)B、TRUNC(V_NUM,2)C、TRUNC(V_NUM,-2)D、ROUND(V_NUM,2)E、ROUND(V_NUM,-2)
考题
下列关于ORACLE的to_date函数和to_char函数,描述正确的是()。A、to_char函数是将字符串数据转换为日期数据B、to_date函数是将字符串数据转换为日期数据C、to_char函数是将日期数据转换为字符数据D、to_date函数是将日期数据转换为字符数
考题
在下列关于类型转换的描述中,错误的是()A、任何形式的构造函数都可以实现数据类型转换。B、带非默认参数的构造函数可以把基本类型数据转换成类类型对象。C、类型转换函数可以把类类型对象转换为其他指定类型对象。D、类型转换函数只能定义为一个类的成员函数,不能定义为类的友元函数。
考题
下列有关组函数的表述中哪个是正确的?()A、NVL和NVL2可以与组函数一起使用来替换null值,而COALESCE则不能。B、NVL和COALESCE可以与组函数一起使用来替换null值,而NVL2则不能。C、NVL、NVL2和COALESCE都可以与组函数一起使用来替换null值。D、COALESCE可以与组函数一起使用来替换null值,而NVL和NVL2则不能。
考题
Which four statements correctly describe functions that are available in SQL? ()A、INSTR returns the numeric position of a named character.B、NVL2 returns the first non-null expression in the expression list.C、TRUNCATE rounds the column, expression, or value to n decimal places.D、DECODE translates an expression after comparing it to each search value.E、TRIM trims the heading of trailing characters (or both) from a character string.F、NVL compares two expressions and returns null if they are equal, or the first expression of they are not equal.G、NULLIF compares twp expressions and returns null if they are equal, or the first expression if they are not equal.
考题
Which SQL statement displays the date March 19, 2001 in a format that appears as "Nineteenth of March 2001 12:00:00 AM"?()A、SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth "of" Month YYYY fmHH:MI:SS AM') NEW_DATE FROM dual;B、SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'Ddspth "of" Month YYYY fmHH:MI:SS AM') NEW_DATE HH:MI:SS AM') NEW _ DATE FROM dual;C、SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY'), 'fmDdspth "of" Month YYYY NEW _ DATE FROM dual;D、SELECT TO_CHAR(TO_DATE('19-Mar-2001', 'DD-Mon-YYYY), 'fmDdspth "of" Month YYYYfmtHH:HI:SS AM')NEW_DATE FROM dual;
考题
Which SELECT statement should you use to extract the year from the system date and display it in the format "1998"?()A、SELECT TO_CHAR(SYSDATE,'yyyy') FROM dual;B、SELECT TO_DATE(SYSDATE,'yyyy') FROM dual;C、SELECT DECODE(SUBSTR(SYSDATE, 8), 'YYYY') FROM dual;D、SELECT DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;E、SELECT TO_CHAR(SUBSTR(SYSDATE, 8,2),'yyyy') FROM dual;
考题
You would like to display the system date in the format "Monday, 01 June, 2001".Which SELECT statement should you use?()A、SELECT TO_DATE(SYSDATE, 'FMDAY, DD Month, YYYY') FROM dual;B、SELECT TO_CHAR(SYSDATE, 'FMDD, DY Month, 'YYYY') FROM dual;C、SELECT TO_CHAR(SYSDATE, 'FMDay, DD Month, YYYY') FROM dual;D、SELECT TO_CHAR(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;E、SELECT TO_DATE(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;
考题
多选题下列关于ORACLE的to_date函数和to_char函数,描述正确的是()。Ato_char函数是将字符串数据转换为日期数据Bto_date函数是将字符串数据转换为日期数据Cto_char函数是将日期数据转换为字符数据Dto_date函数是将日期数据转换为字符数
考题
单选题在C#中无需编写任何代码就能将int型数值转换为double型数值,称为()。A
显式转换B
隐式转换C
数据类型转换D
变换
热门标签
最新试卷