网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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;” 相关考题
考题 在如下2个数据库表中,若雇员信息表EMP的主键是雇员号,部门信息表DEPT的主键是部门号。若执行所列出的操作,哪一项操作不能执行?A.从雇员信息表EMP中删除行('010','王宏达','01','1200')B.从雇员信息表EMP中插入行('102','赵敏','01','1500')C.将雇员信息表EMP中雇员号='010'的工资改为1600元D.将雇员信息表EMP中雇员号='010'的部门号改为'05'

考题 在如下两个数据库的表中,若雇员信息表EMP的主键是雇员号,部门信息表DEPT的主键是部门号。若执行所列出的操作,哪一项操作不能执行?A.从雇员信息表EMP中删除行('010','王宏达','01','1200')B.从雇员信息表EMP中插入行('102','赵敏','01','1500')C.将雇员信息表EMP中雇员号='010'的工资改为1600元D.将雇员信息表EMP中雇员号='001'的部门号改为'05'

考题 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;

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

考题 授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。 A.GRANT CHANGE ON SCOTT.EMP TO SAB.GRANT UPDATE ON SCOTT.EMP(SAL) TO SAC.GRANT UPDATE (SAL) ON SCOTT.EMP TO SAD.GRANT MODIFY ON SCOTT.EMP(SAL) TO SA

考题 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;

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

考题 以下定义变量和常量的方法正确的是()。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

考题 数据库中有一张表名为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 EmpNO792' And EmpNO=793'D、Select * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'

考题 数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。要求查询全部雇员信息应该是哪些数据?()A、Select * From EmpB、Select * From Emp Where EmpNO Like '%%'C、Select * From Emp Where Name = '%%'D、Select * From Emp Where Name Like '%%'

考题 数据库中有一张表名为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!=’办事员’

考题 数据库中有一张表名为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'

考题 对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()A、select sal,decode(sal3000,'A',sal2000,'B','C') grade from emp;B、select sal,decode(sal,3000,'A',2000,'B','C') grade from emp;C、select sal,(case when sal3000 then 'A' when sal2000 then 'B' else 'C' end) grade from emp;D、select sal,(if sal3000 then 'A' elsif sal2000 then 'B' else 'C' end if) grade from emp;

考题 授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。A、GRANT CHANGE ON SCOTT.EMP TO SAB、GRANT UPDATE ON SCOTT.EMP(SAL) TO SAC、GRANT UPDATE (SAL) ON SCOTT.EMP TO SAD、GRANT MODIFY ON SCOTT.EMP(SAL) TO SA

考题 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.

考题 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;

考题 如何将变量v_row定义为emp表的记录类型()A、v_row emp%type;B、v_row emp%record;C、v_row emp%tabletype;D、v_row emp%rowtype;

考题 单选题对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()A select sal,decode(sal3000,'A',sal2000,'B','C') grade from emp;B select sal,decode(sal,3000,'A',2000,'B','C') grade from emp;C select sal,(case when sal3000 then 'A' when sal2000 then 'B' else 'C' end) grade from emp;D select sal,(if sal3000 then 'A' elsif sal2000 then 'B' else 'C' end if) grade from emp;

考题 多选题数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号不为791,792,793的雇员信息应该是用哪些数据查询?()ASelect * From Emp Where EmpNO Not In('791','792','793')BSelect * From Emp Where EmpNO !='791' AND EmpNO!='792' And EmpNO='793'CSelect * From Emp Where EmpNO '791' AND EmpNO792' And EmpNO=793'DSelect * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'

考题 多选题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?()AData is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.BData is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.CData is never redacted for the EMP_V.SAL column.DData is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.EData is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.

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

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

考题 单选题授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。A GRANT CHANGE ON SCOTT.EMP TO SAB GRANT UPDATE ON SCOTT.EMP(SAL) TO SAC GRANT UPDATE (SAL) ON SCOTT.EMP TO SAD GRANT MODIFY ON SCOTT.EMP(SAL) TO SA

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

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

考题 单选题如何将变量v_row定义为emp表的记录类型()A v_row emp%type;B v_row emp%record;C v_row emp%tabletype;D v_row emp%rowtype;

考题 单选题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,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。查询出职位不为“办事员”的雇员信息是()ASelect *From Emp Where Job=办事员BSelect* From Emp Where Job==’办事员’CSelect* From Emp Where Job’办事员’DSelect* From Emp Where Job!=’办事员’