欢迎来到易学考试网 易学考试官网
全部科目 > 大学试题 > 计算机科学 > Oracle

单项选择题

Oracle中要生成数据库表,下列哪个选项是无效表生成的语句?()

    A.create table cats(c_name varchar2(10),c_weight number,c_owner varchar2(10));
    B.create table my_cats as select *from cats where owner =‘ME’;
    C.create global temporary table temp_cats(c_name varchar2(10),c_weight number,c_owner varchar2(10));
    D.create table 51cats as select c_name,c_weight from cats where c_weight >5;

点击查看答案&解析

相关考题

  • 单项选择题
    检查下列代码段中的脚本dates.sql:为了使脚本正确工作,要改变哪个方面?()

    A.变量v_hiredate应变成接受DATE信息。
    B.查询中的trunc()函数应删除。
    C.accept命令中的prompt子句是多余的。
    D.这个脚本很好。

  • 单项选择题
    用下列代码块回答问题:要在上述返回集的DEPTNO列中显示99,可以用下列哪个SQL语句?()

    A.select p.prod_name,p.profit from (select prod_name,profit from profits order by profit desc)where rownum <=5;
    B.select p.prod_name,p.profit from (select prod_name,sum(profit)from profits group by prod_name order by sum(profit)desc)subq where p.prod_name =subq.prod_name;
    C.select p.prod_name,p.profit from (select prod_name,sum(profit)from profits group by prod_name order by sum(profit)desc)where rownum <=5;
    D.select p.prod_name,p.profit from (select prod_name,sum(profit)from profits order by sum(profit)desc)where rownum <=5;

  • 单项选择题
    用下列代码块回答问题:要在上述返回集的DEPTNO列中显示99,可以用下列哪个SQL语句?()

    A.select nvl(e.deptno,99),e.ename,e.sal from emp e where (e.deptno,e.sal)=(select max(e2.sal)from emp e2where nvl(e.dept,99)=nvl(e2.deptno,99));
    B.select nvl(e.deptno,99),e.ename,e.sal from emp e where e.sal =(select max(e2.sal)from emp e2where nvl(e.dept,99)=nvl(e2.deptno,99));
    C.select nvl(e.deptno,99),e.ename,e.sal from emp e where (e.deptno,e.sal)=(select e2.deptno,max(e2.sal)from emp e2where nvl(e.dept,99)=nvl(e2.deptno,99));
    D.select nvl(e.deptno,99),e.ename,e.sal from emp e where (e.deptno,e.sal)=(select e2.deptno,max(e2.sal)from emp e2where nvl(e.dept,99)=nvl(e2.deptno,99)group by e1.deptno);

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题