以下插入记录正确的( )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);
以下插入记录正确的( )
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);
相关考题:
UserSCOTTexecutesthefollowingcommandontheEMPtablebuthasnotissuedCOMMIT,ROLLBACK,oranydatadefinitionlanguage(DDL)command:SQLSELECTenameFROMempWHEREjob=’CLERK’FORUPDATEOFempno;SCOTThasopenedanothersessiontoworkwiththedatabaseinstance.WhichthreeoperationswouldwaitwhenissuedinSCOTT’ssecondsession()A.LOCKTABLEempINSHAREMODE;B.LOCKTABLEempINEXCLUSIVEMODE;C.UPDATEempSETsal=sal*1.2WHEREjob=ANAGER?UPDATEempSETsal=sal*1.2WHEREjob=?ANAGER?D.INSERTINTOemp(empno,ename)VALUES(1289,’Harry’);E.SELECTenameFROMempWHEREjob=’CLERK’FORUPDATEOFempno
●执行下面的一段C程序后,变量x的值为(41)。charX=200;int a=300;BOOL flag;int valuel,value2;valuel=200;value2=300;if( flag((value1=value2)=200)){x=x+a;}(41)A.OB.200C.300D.500
对于第7题的两个基本表,有一个SQL语句: SELECT ENO, ENAME FROM EMP WHERE DNO NOT IN (SELECT DNO FROM DEPT WHERE DNAME='金工车间');其等价的关系代数表达式是:______。A.πENO,ENAME(σDNAME≠'金工车间'(EMPDEPT))B.πENO,ENAMEC.πENO,ENAME(EMP)-πENO,ENAME (σDNAME='金工车间'(EMPDEPT))D.πENO,ENAME (EMP)-πENO,ENAME (σDNAME≠'金工车间'(EMPDEPT))
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
(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降序创建了一个唯一索引
列出薪水高于所在部门平均工资的员工信息()。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);
定义和emp表的ename具有相同数据类型的变量v_ename,正确的代码是A.v_ename ename %typeB.v_ename emp.ename %typeC.v_ename emp.ename typeD.v_ename emp.ename %rowtype