A.select * from emp wher sal in (2000,3000); B.select * from emp wher sal like (2000,3000); C.select * from emp wher sal = (2000,3000); D.select * from emp wher sal between 2000 and 3000;
单项选择题查询出所有名字以’S’开始的员工()
A.select * from emp where ename in 'S%'; B.select * from emp where ename='S%'; C.select * from emp where ename like 'S%'; D.select * from emp where ename like 'S_';
单项选择题查询出当前的数据库系统时间,精确到秒()
A.select to_date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual; B.select to_char(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual; C.select date(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual; D.select chr(sysdate,'YYYY-MM-DD HH24:MI:SS') from dual;
单项选择题怎样取出在集合A中,又在集合B中的数据()
A.A UNION B B.A UNION ALL B C.A INTERSECT B D.A MIUS B
单项选择题怎样取出在集合A中,但却不在集合B中的数据()
A.A MIUS B B.B MINUS A C.A INTERSECT B D.B INTERSECT A
单项选择题列出EMP表中,从事每个工种(JOB)的员工人数()
A.select job from emp; B.select job,count(*) from emp; C.select distinct job,count(*) from emp; D.select job,count(*) from emp group by job; E.select job,sum(empno) from emp group by job;