Home Database Mysql Tutorial 经典Oracle面试题目

经典Oracle面试题目

Jun 07, 2016 pm 05:21 PM
oracle interview questions

经典Oracle面试题目

ORACLE是ORACLE公司的数据产品,支持海量数据存储,支持分布式布暑,支持多用户,跨平台,数据安全完整性控制性能优越,是一个OR

1、对数据库SQL2005、Oracle熟悉吗?

SQL2005是微软公司的数据库产品。是一个RDBMS数据库,一般应用在一些中型数据库的应用,不能跨平台。

ORACLE是ORACLE公司的数据产品,支持海量数据存储,支持分布式布暑,支持多用户,,跨平台,数据安全完整性控制性能优越,是一个ORDBMS,一般用在大型公司。

2、能不能设计数据库?如何实现数据库导入与导出的更新 使用POWERDISINE工具的使用,一般满足第三范式就可以了。EXP与IMP数据库的逻辑导入与导出

3、如何只显示重复数据,或不显示重复数据

显示重复:

select * from tablename group by id having count(*)>1
Copy after login

不显示重复:

select * from tablename group by id having count(*)=1
Copy after login

4、什么是数据库的映射

就是将数据库的表与字段对应到模型层类名与属性的过程

5、写分页有哪些方法,你一般用什么方法?用SQL语句写一个分页?

如何用存储过程写分页?

在SQLSERVER中使用TOP分页,在ORACLE中用ROWNUM,或分析函数ROW_NUMBER 使用TOP:
select top 20,n.* from tablename n minus select top 10,m.* from tablename m
Copy after login

使用分析函数:

select * from
(select n.*,row_number() over(order by columnname) num from tablename n)
where num>=10 and num <=20;
Copy after login

使用过程时,只要将分页的范围用两个参数就可以实现。在ORACLE中,要将过程封装在包里,还要用动态游标变量才能实现数据集的返回。

6、ORACLE中左连接与右连接

左连接:LEFT JOIN 右连接:RIGHT JOIN

select n.column,m.column from tablename1 n left join tablename2 m
on n.columnname=m.columnname
Copy after login

用WHERE实现:

select n.column,m.column from tablename1 n, tablename2 m
where n.columnname( )=m.columnname
Copy after login

7、什么是反射、序列化、反序列化?事务有几种级别?

反射是在程序运行时动态访问DDL的一种方式。序列化是将对象对二进制、XML等方式直接向文件的存储。反序列化是将存储到文件的对象取出的过程。事务的级别的三种:页面级、应用程序级、数据库级。

【专题推荐】:2020年oracle面试题汇总(最新)

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Reduce the use of MySQL memory in Docker Reduce the use of MySQL memory in Docker Mar 04, 2025 pm 03:52 PM

Reduce the use of MySQL memory in Docker

How do you alter a table in MySQL using the ALTER TABLE statement? How do you alter a table in MySQL using the ALTER TABLE statement? Mar 19, 2025 pm 03:51 PM

How do you alter a table in MySQL using the ALTER TABLE statement?

How to solve the problem of mysql cannot open shared library How to solve the problem of mysql cannot open shared library Mar 04, 2025 pm 04:01 PM

How to solve the problem of mysql cannot open shared library

What is SQLite? Comprehensive overview What is SQLite? Comprehensive overview Mar 04, 2025 pm 03:55 PM

What is SQLite? Comprehensive overview

Run MySQl in Linux (with/without podman container with phpmyadmin) Run MySQl in Linux (with/without podman container with phpmyadmin) Mar 04, 2025 pm 03:54 PM

Run MySQl in Linux (with/without podman container with phpmyadmin)

Running multiple MySQL versions on MacOS: A step-by-step guide Running multiple MySQL versions on MacOS: A step-by-step guide Mar 04, 2025 pm 03:49 PM

Running multiple MySQL versions on MacOS: A step-by-step guide

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)? Mar 18, 2025 pm 12:00 PM

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?

How do I configure SSL/TLS encryption for MySQL connections? How do I configure SSL/TLS encryption for MySQL connections? Mar 18, 2025 pm 12:01 PM

How do I configure SSL/TLS encryption for MySQL connections?

See all articles