以下插入记录正确的( )
A.insert into emp(ename,hiredate,sal) values (value1,value2,value3);
B.insert into emp (ename,sal)values(value1,value2,value3);
C.insert into emp (ename)values(value1,value2,value3);
D.insert into emp (ename,hiredate,sal)values(value1,value2);
第1题:
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;
第2题:
(33)如果对关系 emp(eno, ename, salary)成功执行下面的SQL语句:
CREATE CLUSTER INDEX name_index ON emp(salary)
其结果是
A)在 emp表上按sal娜升序创建了一个聚簇索引
B)在 emp表上按salary降序创建了一个聚簇索引
C)在 emp表上按salary升序创建了一个唯一索引
D)在 emp表上按salary降序创建了一个唯一索引
第3题:
定义和emp表的ename具有相同数据类型的变量v_ename,正确的代码是
A.v_ename ename %type
B.v_ename emp.ename %type
C.v_ename emp.ename type
D.v_ename emp.ename %rowtype
第4题:
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
第5题:
列出薪水高于所在部门平均工资的员工信息()。
A.select deptno,ename,sal from emp a where sal> (select avg(a.sal) from emp where deptno=a.deptno);
B.select deptno,ename,sal from emp a where sal> (select avg(sal) from emp where deptno=a.deptno);
C.select a.deptno,a.ename,a.sal from emp a,emp b where a.deptno=b.deptno and a.sal>avg(b.sal);
D.select a.deptno,a.ename,a.sal from emp a,emp b where a.deptno=b.deptno and b.sal>avg(a.sal);