单项选择题
在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该()
A.type array arr_type[emp.ename%type] index by binary_integer;
B.type table arr_type[emp.ename%type] index by binary_integer;
C.type arr_type is table of emp.ename%type index by binary_integer;
D.type arr_type is pl_sql table of emp.ename%type index by binary_integer;
相关考题
-
单项选择题
在PL/SQL中预定义了所要查询的数据没有找到例外,它是()
A.NO DATA FOUND
B.DATA_NOT_FOUND
C.NO_DATA_FOUND
D.DATA_NO_FOUND -
单项选择题
在PL/SQL中定义一个名为v_name长度为60个字符的变长字符串类型的变量,以下正确的是()
A.v_namechar(60);
B.v_namestring(60);
C.v_namevarchar2(60);
D.v_namevarchar2(61); -
单项选择题
对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()
A.select sal,decode(sal>3000,'A',sal>2000,'B','C') grade from emp;
B.select sal,decode(sal,3000,'A',2000,'B','C') grade from emp;
C.select sal,(case when sal>3000 then 'A' when sal>2000 then 'B' else 'C' end) grade from emp;
D.select sal,(if sal>3000 then 'A' elsif sal>2000 then 'B' else 'C' end if) grade from emp;
