单选题emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()A v_sal emp%rowtype;B v_sal emp.sal%type;C v_sal emp.sal.%type;D v_sal %type(emp.sal);E v_sal (emp.sal)%type;

题目
单选题
emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()
A

v_sal emp%rowtype;

B

v_sal emp.sal%type;

C

v_sal emp.sal.%type;

D

v_sal %type(emp.sal);

E

v_sal (emp.sal)%type;


相似考题
参考答案和解析
正确答案: E
解析: 暂无解析
更多“单选题emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()A v_sal emp%rowtype;B v_sal emp.sal%type;C v_sal emp.sal.%type;D v_sal %type(emp.sal);E v_sal (emp.sal)%type;”相关问题
  • 第1题:

    授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。

    A.GRANT CHANGE ON SCOTT.EMP TO SA

    B.GRANT UPDATE ON SCOTT.EMP(SAL) TO SA

    C.GRANT UPDATE (SAL) ON SCOTT.EMP TO SA

    D.GRANT MODIFY ON SCOTT.EMP(SAL) TO SA


    参考答案:B

  • 第2题:

    在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;

    正确答案:C

  • 第3题:

    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号不为791,792,793的雇员信息应该是用哪些数据查询?()

    • A、Select * From Emp Where EmpNO Not In('791','792','793') 
    • B、Select * From Emp Where EmpNO !='791' AND EmpNO!='792' And EmpNO='793' 
    • C、Select * From Emp Where EmpNO <>'791' AND EmpNO<>792' And EmpNO=<>793' 
    • D、Select * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'

    正确答案:A,B,C

  • 第4题:

    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。查询出职位不为“办事员”的雇员信息是()

    • A、Select *From Emp Where Job>="办事员"
    • B、Select* From Emp Where Job==’办事员’
    • C、Select* From Emp Where Job<>’办事员’
    • D、Select* From Emp Where Job!=’办事员’

    正确答案:C,D

  • 第5题:

    对于雇员表(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;

    正确答案:C

  • 第6题:

    You execute the following piece of code with appropriate privileges: User SCOTT has been granted theCREATE SESSION privilege and the MGR role.Which two statements are true when a session logged in as SCOTT queries the SAL column in the viewand the table?()

    • A、Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.
    • B、Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.
    • C、Data is never redacted for the EMP_V.SAL column.
    • D、Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.
    • E、Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.

    正确答案:A,C

  • 第7题:

    如何将变量v_row定义为emp表的记录类型()

    • A、v_row emp%type;
    • B、v_row emp%record;
    • C、v_row emp%tabletype;
    • D、v_row emp%rowtype;

    正确答案:D

  • 第8题:

    多选题
    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号不为791,792,793的雇员信息应该是用哪些数据查询?()
    A

    Select * From Emp Where EmpNO Not In('791','792','793') 

    B

    Select * From Emp Where EmpNO !='791' AND EmpNO!='792' And EmpNO='793' 

    C

    Select * From Emp Where EmpNO <>'791' AND EmpNO<>792' And EmpNO=<>793' 

    D

    Select * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    多选题
    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号为791,792,793的雇员信息是()
    A

    Select * From Emp Where EmpNO  In('791','792','793') 

    B

    Select * From Emp Where EmpNO ='791' Or EmpNO='792' OR EmpNO='793' 

    C

    Select * From Emp Where EmpNO >='791' And EmpNO<='793' 

    D

    Select * From Emp Where EmpNO >'791' And EmpNO<'793'


    正确答案: A,D
    解析: 暂无解析

  • 第10题:

    单选题
    授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。
    A

    GRANT CHANGE ON SCOTT.EMP TO SA

    B

    GRANT UPDATE ON SCOTT.EMP(SAL) TO SA

    C

    GRANT UPDATE (SAL) ON SCOTT.EMP TO SA

    D

    GRANT MODIFY ON SCOTT.EMP(SAL) TO SA


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    emp表是雇员信息表,以下哪个变量可以存放emp表中的一条记录()
    A

    v_record emp%type;

    B

    v_record emp%recordtype;

    C

    v_record emp%record_type;

    D

    v_record emp%rowtype;

    E

    v_record emp%row_type;


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()
    A

    v_sal emp%rowtype;

    B

    v_sal emp.sal%type;

    C

    v_sal emp.sal.%type;

    D

    v_sal %type(emp.sal);

    E

    v_sal (emp.sal)%type;


    正确答案: D
    解析: 暂无解析

  • 第13题:

    emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()

    • A、v_sal emp%rowtype;
    • B、v_sal emp.sal%type;
    • C、v_sal emp.sal.%type;
    • D、v_sal %type(emp.sal);
    • E、v_sal (emp.sal)%type;

    正确答案:B

  • 第14题:

    以下定义变量和常量的方法正确的是()。

    • A、v_enameVARCHAR2(10);
    • B、v_sal,v_commNUMBER(6,2)
    • C、v_salNUMBER(6,2)NOTNULL;
    • D、c_taxCONSTANTNUMBER(6,2)DEFAULT0.17;
    • E、%salNUMBER(6,2);
    • F、v_commemp.Comm%TYPE

    正确答案:A,D,F

  • 第15题:

    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。要求查询全部雇员信息应该是哪些数据?()

    • A、Select * From Emp 
    • B、Select * From Emp Where EmpNO Like '%%' 
    • C、Select * From Emp Where Name = '%%' 
    • D、Select * From Emp Where Name Like '%%'

    正确答案:A,B,D

  • 第16题:

    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号为791,792,793的雇员信息是()

    • A、Select * From Emp Where EmpNO  In('791','792','793') 
    • B、Select * From Emp Where EmpNO ='791' Or EmpNO='792' OR EmpNO='793' 
    • C、Select * From Emp Where EmpNO >='791' And EmpNO<='793' 
    • D、Select * From Emp Where EmpNO >'791' And EmpNO<'793'

    正确答案:A,B,C

  • 第17题:

    授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。

    • A、GRANT CHANGE ON SCOTT.EMP TO SA
    • B、GRANT UPDATE ON SCOTT.EMP(SAL) TO SA
    • C、GRANT UPDATE (SAL) ON SCOTT.EMP TO SA
    • D、GRANT MODIFY ON SCOTT.EMP(SAL) TO SA

    正确答案:B

  • 第18题:

    emp表是雇员信息表,以下哪个变量可以存放emp表中的一条记录()

    • A、v_record emp%type;
    • B、v_record emp%recordtype;
    • C、v_record emp%record_type;
    • D、v_record emp%rowtype;
    • E、v_record emp%row_type;

    正确答案:D

  • 第19题:

    单选题
    对于雇员表(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;


    正确答案: B
    解析: 暂无解析

  • 第20题:

    多选题
    You execute the following piece of code with appropriate privileges: User SCOTT has been granted theCREATE SESSION privilege and the MGR role.Which two statements are true when a session logged in as SCOTT queries the SAL column in the viewand the table?()
    A

    Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.

    B

    Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.

    C

    Data is never redacted for the EMP_V.SAL column.

    D

    Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.

    E

    Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.


    正确答案: E,A
    解析: 暂无解析

  • 第21题:

    多选题
    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。要求查询全部雇员信息应该是哪些数据?()
    A

    Select * From Emp 

    B

    Select * From Emp Where EmpNO Like '%%' 

    C

    Select * From Emp Where Name = '%%' 

    D

    Select * From Emp Where Name Like '%%'


    正确答案: B,D
    解析: 暂无解析

  • 第22题:

    单选题
    在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;


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    如何将变量v_row定义为emp表的记录类型()
    A

    v_row emp%type;

    B

    v_row emp%record;

    C

    v_row emp%tabletype;

    D

    v_row emp%rowtype;


    正确答案: B
    解析: 暂无解析

  • 第24题:

    多选题
    数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。查询出职位不为“办事员”的雇员信息是()
    A

    Select *From Emp Where Job>=办事员

    B

    Select* From Emp Where Job==’办事员’

    C

    Select* From Emp Where Job<>’办事员’

    D

    Select* From Emp Where Job!=’办事员’


    正确答案: C,B
    解析: 暂无解析