史上最强的几道oracle面试题
Oracle&#65279 最近听说ocp贬值了,据说大家都能随便考上了,偶特意为想考ocp和考过ocp的同学们制 ...
Oracle
65279; 最近听说ocp贬值了,据说大家都能随便考上了,偶特意为想考ocp和考过ocp的同学们制作了几道题目,题目看上去很简单,似乎答案可以脱口而出,如果10分钟内能够全部回答正确,偶相信你应该能够具备一个ocp所具有的思考能力了 :)
(1) a 表中有100条记录.
select * from a where a.column1 = a.column1
这个语句返回几条记录? (简单吧,似乎1秒钟就有答案了:)
(2) create sequence peak_no
select peak_no.nextval from dual --> 假设返回1
10秒中后,再次做
select peak_no.nextval from dual --> 返回多少?
(3) sql> connect sys as sysdba
connected.
sql> insert into dual values ( ’y’);
1 row created.
sql> commit;
commit complete.
sql> select count(*) from dual;
count(*)
----------
2
sql> delete from dual;
commit;
-->dual里还剩几条记录?
just try it .