【单选题】
要统计某表中记录的总个数,以下哪项是正确的SQL语句___。
A. select Max(*) from 表名
B. select Sum(*) from 表名
C. select Count(*) from 表名
D. select Min(*) from 表名
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
C
解析
暂无解析
相关试题
【单选题】
要求表中数据的最大值,应使用什么函数___。
A. Max
B. Min
C. Sum
D. Avg
【单选题】
下列正确查询姓张的学生的语句是___。
A. select * from 表名 where 姓名= '张'
B. select * from 表名 where 姓名 like '张%'
C. select * from 表名 where 姓名= '%张%'
D. select * from 表名 where 姓名 like '张'
【单选题】
以下哪项不是Oracle数据库物理组件的类型___。
A. 数据文件
B. 控制文件
C. 日志文件
D. 表空间
【单选题】
关于数据控制语言中,收回所授予的权限的语句是___。
A. Create
B. Revoke
C. Grant
D. Update
【单选题】
Oracle数据库中,连接字符串的运算符是___。
A. +
B. &
C. is
D. ||
【单选题】
Oracle数据库中返回字符串长度的函数是___。
A. Substr
B. Replace
C. InStr
D. Length
【单选题】
Oracle数据库中按指定的精度进行四舍五入的函数是___。
A. Sign
B. Trunc
C. Round
D. Mod
【单选题】
转换日期类型为字符串的转换函数是___。
A. to_date
B. to_datetime
C. to_char
D. to_number
【单选题】
在数据库中,对象Index表示___。
A. 同义词
B. 表
C. 包
D. 索引
【单选题】
在SQL*PLUS环境中可以利用DBMS_OUTPUT包中的PUT_LINE方法来回显服务器端变量的值,但在此之前要利用一个命令打开服务器的回显功能,这一命令是___。
A. set server on
B. set serverecho on
C. set servershow on
D. set serveroutput on
【单选题】
以下哪个命令是DDL命令___。
A. CREATE
B. INSERT
C. COMMIT
D. SELECT
【单选题】
第一步用DELETE命令删除了表A中的数据(但并没有提交),第二步成功创建了一个表B,第三步执行了一个ROLLBACK回滚操作。请问以下叙述正确的是___。
A. 表A中的数据被恢复回来,创建的表B被从数据库中被删除,恢复为未建表之前的状态
B. 表A中的数据被恢复回来,表B被创建在数据库中
C. 表A中的数据被彻底从数据库中删除,但表B被从数据库中被删除,恢复为未建表之前的状态
D. 表A中的数据被彻底从数据库中删除,表B被创建在数据库中
【单选题】
某个表的创建语句如下: CREATE TABLE USER_TAB01(COL1, COL2, COL3) TABLESPACE USER01 STORAGE(INITIAL 64K NEXT 128K PCTINCREASE 100); ORACLE为该表的数据段分配的前3个区的大小依次为多大?___
A. 64KB, 128KB, 128KB
B. 64KB, 128KB, 192KB
C. 64KB, 128KB, 64KB
D. 64KB, 128KB, 256KB
【单选题】
假定有一张表用户表users,其中一身份证字段ID_card。为了维护数据的完整性,在设计数据库时,最好对ID_card字段添加约束,请问应该添加什么约束___。
A. primary key
B. check
C. default
D. not null
【单选题】
下面哪一个like命令会返回名字象HOTKA的行?___
A. where ename like ‘_HOT%'
B. where ename like ‘H_T%'
C. where ename like ‘%TKA_'
D. where ename like ‘%TOK%'
【单选题】
命令sqlplus /nolog的作用是___
A. 仅创建一个ORACLE实例,但并不打开数据库.
B. 仅创建一个ORACLE实例,但并不登录数据库.
C. 启动sqlplus,但并不登录数据库
D. 以nolog用户身份启动sqlplus
【单选题】
下列哪个命令是用于ORACLE中数据导出的___
A. expdp
B. impdp
C. input
D. output
【单选题】
___是用于控制数据访问的语言。
A. DML
B. DDL
C. DCL
D. DLL
【单选题】
NULL表示什么___。
A. 0
B. 空格
C. 值
D. 没有值
【单选题】
___锁用于锁定表,允许其他用户查询表中的行和锁定表,但不允许插入.更新和删除行。
A. 行共享
B. 行排他
C. 共享
D. 排他
【单选题】
___包用于显示PL/SQL块和存储过程中的调试信息。
A. DBMS_OUTPUT
B. DBMS_STANDARD
C. DBMS_INPUT
D. DBMS_SESSION
【单选题】
下列属于运算符是___。
A. 变量运算符
B. 符号运算符
C. 关系运算符
D. 数值运算符
【单选题】
在Oracle中,有一个名为seq的序列对象,以下语句能返回序列值但不会引起序列值增加的是___。
A. select seq.ROWNUM from dual
B. select seq.ROWID from dual
C. select seq.CURRV AL from dual
D. select seq.NEXTV AL from dual
【单选题】
DBA可以使用下列哪一个命令查看当前归档状态___。
A. ARCHIVE LOG LIST
B. FROMARCHIVE LOGS
C. SELECT * FROM V$THREAD
D. SELECT * FROM ARCHIVE_LOG_LIST
【单选题】
oracle数据库有多种启动状态,其中___是在数据库备份和恢复中使用最多的状态。
A. startup force
B. startup
C. startup nomount
D. startup mount
【单选题】
要让scott能够导入自身方案给别的用户,需要他必须具有___。
A. resource角色
B. exp_full_ddatabase角色
C. imp_full_database角色
D. dba角色
【单选题】
设置闪回区域大小的参数是___。
A. DB_RECOVERY_FILE_DEST
B. DB_RECOVERY_FILE_DEST_SIZE
C. DB_FLASHBACK_RETENTION_TARGET
D. FLASHBACK_ON
【单选题】
启用系统的闪回使用___。
A. alter database set flashback_on=true
B. alter database flashback on
C. alter system set flashback_on=true
D. alter system set flashback on
【单选题】
使用序列,为数据表添加数据的时候,一般使用___。
A. currval
B. nextval
C. 序列名.currval
D. 序列名.nextval
【单选题】
导出scott的表,然后导入到另外一个方案中,要用的到核心关键词是___。
A. directory
B. dumpfile
C. tables
D. remap_schema
【单选题】
___能查询数据的名称.归档状态.闪回状态。
A. v$instance
B. v$database
C. dba_users
D. dba_tablespaces
【多选题】
PL/SQL中,对变量赋值有哪两种方式___。
A. ==
B. =
C. :=
D. select into 语句
【多选题】
关于表的主键,说法正确的两项是___。
A. 主键字段的值最多允许有一条记录为Null
B. 主键字段的值可以重复
C. 主键字段的值不能为Null
D. 主键字段的值不能重复
【多选题】
在以下概要文件的陈述中,哪两个是正确的___?
A. 概要文件不能被用来为账户加锁
B. 概要文件不能被用来控制资源使用
C. 数据库管理员可以使用概要文件来使口令衰老和过期
D. 不能删除默认的概要文件
【多选题】
在一个新的数据库中,如果要限制一个用户的并行会话(同时连接)数,需要使用以下哪3个步骤?___
A. 使用SESSION_PER_USER参数创建一个角色
B. 使用create profile创建一个概要文件
C. 使用ALTER SYSTEM 语句强制开启资源限制
D. 使用ALTER USER 语句将概要文件赋予用户
【多选题】
下列有关子查询的说法,正确的是___?
A. 子查询要包含在括号内
B. 不要在子查询中使用order by子句
C. 子查询放在比较条件的右侧
D. 单行子查询是指返回一列数据的子查询语句
【多选题】
在Oracle中,下列比较运算符表示不等于的有___?
A. >
B. !=
C. ≠
D. =!
【多选题】
下俩属于Oracle数据类型的有___?
A. 字符类型
B. 日期时间类型
C. LOB类型
D. ROWID类型
【多选题】
程序包由哪几部分组成___?
A. 规范
B. 包主体
C. 声明部分
D. 执行过程部分
【多选题】
以下属于物理存储结构的是___。
A. 数据文件
B. 控制文件
C. 用户文件
D. 日志文件
推荐试题
【单选题】
Is that seat taken?___
A. Please don't worry.
B. I don't think so.
C. Why not?
D. It's very nice.
【单选题】
Thank you for calling.___
A. Don’t mention it.
B. That's fine.
C. Nice talking to you.
D. Call back again.
【单选题】
How are you getting on today?___
A. Very well.
B. How do you do?
C. I'm a doctor.
D. Nice to have known you.
【单选题】
How's your family?___
A. Thanks all the same.
B. Thanks for calling.
C. Not too bad.
D. Don't mention it.
【单选题】
- How is it that you are late for class again?___
A. Because I missed the bus
B. By bus and then on foot
C. Yes, it is quite wrong
D. It is far from school
【单选题】
- Excuse me. Could you spare me a few minutes? - ___
A. Of course.
B. Of course not.
C. I am sorry to hear that.D.Yes. I'm busy now.
【单选题】
- It's very thoughtful of you to give me a ride. ___
A. It's my pleasure.
B. Take it easy.
C. Sure.
D. Never mind.
【单选题】
- This is heavy! What's in it? ___
A. I think you don't like it.
B. My new computer. I just bought it.
C. I'm glad you're here.
D. Are you really interested in it?
【单选题】
___ I'd like to place an order please.
A. Can I help you?
B. I can help you.
C. What are you doing?
D. Why are you doing?
【单选题】
- Do you know the girl over there?___
A. How can I know?
B. Yes, I remember it now.
C. It's Sam, my teacher's daughter.
D. She is a good girl.
【单选题】
- Shall we go out for dinner tonight?____
A. No, you can't.
B. Yes, please.
C. Thank you, I don't want to.
D. Sorry, I have a report to finish.
【单选题】
- I think the reference book(参考书)is very helpful.____
A. Good idea.
B. So do I.
C. With pleasure.
D. No problem.
【单选题】
- I wish you success in your career.____
A. You are welcome.
B. I think so.
C. Yes, please.
D. The same to you.
【单选题】
- Would you like to come over tonight?____
A. Yes, last night.
B. Yes, over there.
C. Sure, I'd love to.
D. Yeah, I liked it too.
【单选题】
- How do I transfer calls? ____
A. Do as you like.
B. It is a bit difficult.
C. Let me show you.
D. Not at all.
【单选题】
- Thanks for inviting me, John, but I've already made other plans. ____. Maybe another time.
A. I hope you enjoy it
B. That's good
C. Oh! I'm sorry to hear that
D. Great! I really had a good time
【单选题】
- Thanks for the lovely party and the delicious food. ____
A. No, thanks.
B. Never mind.
C. Thank you for coming.D.That's all right.
【单选题】
- Why didn't you tell me? ____
A. Sorry, I forgot.
B. I'm sorry you should wait.
C. I don't know.
D. I'd love to.
【单选题】
- What do you plan to do after the exam? ____ How about you?
A. I hate taking exams.
B. I like making plans.
C. Nothing special.
D. I've changed my mind.
【单选题】
- Tom told me that you collect stamps. ____
A. What do you mean?
B. I don't think so.
C. Why did he tell you?
D. Yes, I do. Do you?
【单选题】
- This is a challenging job. Who wants it?____
A. I'll take it.
B. It's a good idea.
C. You bet!
D. No sweat!
【单选题】
- I'm taking my driving test tomorrow. ___!
A. Cheers
B. Good luck
C. Come on
D. Congratulations
【单选题】
- ABC Company, may I help you? ____
A. I am Jack. May I speak to Miss Jenny?
B. This is Jack speaking. May I speak to Miss Jenny?
C. This is Jack speaking. Can I find Miss Jenny?
D. I am Jack. Can I find Miss Jenny?
【单选题】
- You have won the football game. Congratulations! ____
A. We are really lucky.
B. No one else could do it.
C. Oh, not really.
D. It's nice of you to say so.
【单选题】
- Excuse me, when will the 17:15 train arrive____
A. I don't tell you.
B. It's been delayed one hour.
C. You have to be patient.
D. Don't ask me.
【单选题】
- Is John there?____
A. Speaking.
B. I'm not Mary.
C. Who are you?
D. Mary is well today.
【单选题】
- Would you like to join us for Sunday dinner____
A. It's nice of you to invite me.
B. How about the food?
C. I like onion soup.
D. I'm sorry I missed the fun last time.
【单选题】
- Could you tell me where the nearest parking lot is?____
A. Don't ask me.
B. Parking is very difficult.
C. Sorry, I'm a stranger here.
D. Sorry, you can't park here.
【单选题】
- Sorry, ___
A. here you are.
B. take it.
C. it's taken.
D. never mind.
【单选题】
-What's this in English? ____
A. It's a map.
B. That is a map.
C. Yes, it's a map.
D. No, it isn't.
【单选题】
- I hear you got through your exam. Congratulations!____
A. No. I didn't do well enough.
B. Who told you that?
C. Thanks.
D. Yes, I got a good mark.
【单选题】
- Don't forget to come to my party this evening!___
A. I can't.
B. I won't.
C. I don't.
D. I will.
【单选题】
- Jim, please don't put your head out of the window on the bus. It's dangerous!___
A. Good idea.
B. Sorry, I won't do it again.
C. It doesn't matter.
D. It's good.
【单选题】
-How about going fishing?___, I have no patience for that.
A. Excuse me
B. Sorry
C. Pardon
D. Apologize
【单选题】
- Thanks for the lovely and delicious food______.
A. No thanks
B. Never mind
C. All right
D. My pleasure
【单选题】
- Haven't seen you for ages. Let's have a get-together next week._____
A. Great idea.
B. Welcome!
C. Yes, of course.
D. No, thanks.
【单选题】
- Do you mind if I switch off the radio? ______. Go ahead.
A. Never mind
B. No way
C. No, not at all
D. No, you'd better not
【单选题】
- Could I use your bike for a moment? ___
A. It's well.
B. It doesn't matter.
C. By all means.
D. I have no idea.
【单选题】
-How do you like the story?_______.
A. I'd like to read it
B. I like it very much
C. fine, thank you
D. It's very interesting
【单选题】
- I'll sorry to trouble you.______.
A. Don't say so
B. OK
C. It doesn't matter
D. That's fight