在Oracle中,有一个名为seq的序列对象,以下语句能返回序列值但不会引起序列值增加的是()A、select seq.ROWNUM from dualB、select seq.ROWID from dualC、select seq.CURRVAL from dualD、select seq.NEXTVAL from dual
在Oracle中,有一个名为seq的序列对象,以下语句能返回序列值但不会引起序列值增加的是()
- A、select seq.ROWNUM from dual
- B、select seq.ROWID from dual
- C、select seq.CURRVAL from dual
- D、select seq.NEXTVAL from dual
相关考题:
查找教师表中教师最高的工资值,下列SQL语句正确的是A.SELECT MAX(工资) FROM 教师表B.SELECT MIN(工资) FROM 教师表C.SELECT AVG(工资) FROM 教师表D.SELECT SUM(工资) FROM 教师表
下列SQL语句中可以正确查询教师表中“系别号”字段的值为空值的所有记录的是( )。A. SELECT*FROM教师WHERE系别号=‘ ’B. SELECT*FROM教师WHERE系别号=nullC. SELECT*FROM教师WHERE系别号is nullD. SELECT ISNULL(系别号)FROM教师
显示本月月末的日期() A.select last_date(sysdate) from dual;B.select finally_day(sysdate) from dual;C.select last_day(sysdate) from dual;D.select tail_day(sysdate) from dual;
在Oracle中,下面哪条语句当COMM字段为空时显示0,不为空时显示COMM的值()。 A.select ename,nvl(comm.,0)from empB.select ename,null(comm.,0)from empC.SELECT ename,NULLIF(comm,0)FROM empD.SELECT ename,DECODE(comm.,NULL,0)FROM emp
当需要查询Oracle的控制文件的名称、位置和状态时,可以使用()语句。 A.SELECT name FROM V$CONTROLFILEB.SELECT name FROM V$CTRLLFILEC.SELECT name FROM V$USERFILESD.SELECT name FROM V$DBAFILE
有SQL语句:SELECT DISTINCT系号FROM教师WHERE 工资=ALL (SELECT 工资FROM教师WHERE系号=\02\) 与如上语句等价的SQL语句是A.SELECT DISTINCT系号FROM教师WHERE工资=(SELECT MAX(工资)FROM教师WHERE 系号="02")B.SELECT DISTINCT系号FROM教师WHERE工资=(SELECT MIN(工资)FROM教师WHERE 系号="02")C.SELECT DISTINCT系号FROM教师WHERE工资=(ANY(SELECT(工资)FROM教师WHERE 系号="02")D.SELECT DISTINCT系号FROM教师WHERE工资=(SOME (SELECT(工资)FROM教师WHERE 系号="02")
( 30 )与 “ SELECT * FROM 教师表 INTO DBF A ” 等价的语句是A ) SELECT * FROM 教师表 TO DBF AB ) SELECT * FROM 教师表 TO TABLE AC ) SELECT * FROM 教师表 INTO TABLE AD ) SELECT * FROM 教师表 INTO A
以下哪条SELECT语句将返回一个数字值?()A、SELECT SYSDATE + 600 / 24 FROM 雇员;B、SELECT ROUND(聘用日期, DAY) FROM 雇员;C、SELECT (SYSDATE - 聘用日期) / 7 FROM 雇员;D、SELECT SYSDATE - 7 FROM 雇员;
成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。(选择两项)A、select max(score) from gradeB、select top 1 score from grade order by score ascC、Select min(score) from gradeD、select top 1 score from grade order by score desc
在Oracle中,下面哪条语句当COMM字段为空时显示0,不为空时显示COMM的值()。A、select ename,nvl(comm.,0)from empB、select ename,null(comm.,0)from empC、SELECT ename,NULLIF(comm,0)FROM empD、SELECT ename,DECODE(comm.,NULL,0)FROM emp
下列()语句可以查看ORACLE数据库字符集。A、selectuser(’language’)from dualB、selectlanguagefrom dualC、selectuserenvfrom dualD、selectuserenv(’language’)from dual
Oracle中,有一个名为seq的序列对象,以下语句能返回序列值但不会引起序列值增加的是()。A、selectseq.ROWNUM from dualB、selectseq.ROWID from dualC、selectseq.CURRVAL from dualD、selectseq.NEXTVAL from dual
变量v_time=’23-MAY-00’, 如下那条语句返回值为’01-JAN-00’?()A、select round(v_time,’DAY’) from dualB、select round(v_time,’YEAR’) from dualC、select round(v_time,’MONTH’) from dualD、A select round(to_char(v_time,’yyyy’)) from dual
下列SQL语句中,能够完成求某列最大值的是()。A、SELECT AVG(Age) FROM StudentB、SELECT MAX(Age) FROM StudentC、SELECT MIN(Age) FROM StudentD、SELECT COUNT(*) FROM Student
评估以下SELECT语句: SELECT SYSDATE+30 FROM dual; 该查询将返回哪个值?()A、当前日期加30小时B、当前日期加30天C、当前日期加30个月D、不会返回任何值,因为SELECT语句会产生错误
创建一个名为‘Customers’的新表,同时要求新表中包含表‘clients’的所有记录,sql语句是()。A、Select*into customers from clientsB、Select into customers from clientsC、Insert into customers select*from clientsD、Insert customers select*from clients
创建一个名为’catt’的新表,要求该表包含’kehu’表的所有记录,应使用的SQL语句是()A、select*intocatt where from kehuB、select*into catt from kehuC、insert into catt select*from kehuD、inser tinto catt from select*from kehu
在Transact-SQL语法中,以下SELECT语句正确的是()。A、SELECT * FROM studentB、SELECT * FROM student WHERE GETDATE()C、SELECT * FROM student ORDER st_idD、SELECT * FROM student BY St_name
当需要查询Oracle的控制文件的名称、位置和状态时,可以使用()语句。A、SELECT name FROM V$CONTROLFILEB、SELECT name FROM V$CTRLLFILEC、SELECT name FROM V$USERFILESD、SELECT name FROM V$DBAFILE
显示本月月末的日期()A、select last_date(sysdate) from dual;B、select finally_day(sysdate) from dual;C、select last_day(sysdate) from dual;D、select tail_day(sysdate) from dual;
Which three SELECT statements displays 2000 in the format “$2,000.00”?()A、SELECT TO CNAR(2000, ‘$#,###.##’) FROM dual;B、SELECT TO CNAR(2000, ‘$0,000.00’) FROM dual;C、SELECT TO CNAR(2000, ‘$9,999.00’) FROM dual;D、SELECT TO CNAR(2000, ‘$9,999.99’) FROM dual;E、SELECT TO CNAR(2000, ‘$2,000.00’) FROM dual;F、SELECT TO CNAR(2000, ‘$N,NNN.NN’) FROM dual;
Which SELECT statement should you use to extract the year from the system date and display it in the format "1998"?()A、SELECT TO_CHAR(SYSDATE,'yyyy') FROM dual;B、SELECT TO_DATE(SYSDATE,'yyyy') FROM dual;C、SELECT DECODE(SUBSTR(SYSDATE, 8), 'YYYY') FROM dual;D、SELECT DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;E、SELECT TO_CHAR(SUBSTR(SYSDATE, 8,2),'yyyy') FROM dual;
Which three SELECT statements display 2000 in the format "$2,000.00"? ()A、SELECT TO_CHAR(2000, '$#,###.##') FROM dual;B、SELECT TO_CHAR(2000, '$0,000.00') FROM dual;C、SELECT TO_CHAR(2000, '$9,999.00') FROM dual;D、SELECT TO_CHAR(2000, '$9,999.99') FROM dual;E、SELECT TO_CHAR(2000, '$2,000.00') FROM dual;F、SELECT TO_CHAR(2000, '$N,NNN.NN') FROM dual;
如何显示今天是星期几(周一到周日,分别用1~7表示)()A、select to_char(sysdate,'D') from dual;B、select to_char(sysdate,'W') from dual;C、select to_char(sysdate,'D')-1 from dual;D、select to_char(sysdate-1,'D') from dual;E、select to_char(sysdate-1,'W') from dual;
当需要返回当前用户的名字,可以执行如下()SQL语句。A、SELECT user FROM V$DBAB、SELECT user FROM dualC、SELECT name FROM dualD、SELECT name FROM V$DBA
Which SELECT statement will the result ‘ello World’ from the string ‘Hello World’?()A、SELECT SUBSTR( ‘Hello World’,1) FROM dual;B、SELECT INITCAP(TRIM (‘Hello World’, 1,1)) FROM dual;C、SELECT LOWER(SUBSTR(‘Hello World’, 1, 1) FROM dual;D、SELECT LOWER(SUBSTR(‘Hello World’, 2, 1) FROM dual;E、SELECT LOWER(TRIM (‘H’ FROM ‘Hello World’)) FROM dual;