The following are the questions
Please try to answer following PL/SQL, SQL and database question。
1) Can we declare a column having number data type and its scale is
larger than pricesion?
ex: column_name NUMBER(10,100), column_name NUMBAER(10,-84) ?
2) Explain the usage of WHERE CURRENT OF clause in cursors ?
3) What is Overloading of procedures ?
4) What is Pragma EXECPTION_INIT ? Explain the usage ?
5) What are the return values of functions SQLCODE and SQLERRM ?
6) Is it possible to use Transaction control Statements such a
ROLLBACK or COMMIT in Database Trigger ? Why ?
7) How we can create a table in PL/SQL block. insert records into
it??? is it possible by some procedure or function?? please give
example...
8) What are advantages for Stored Procedures?
9) PL/SQL benchmark and profile:
Two piece of PL/SQL blocks, finish the same task, can you tell which
one is better and why?
Please benchmark it on 9i and 10g both, and list the benchmark detail figures.
1.1:
ORA920> begin
2 for i in 1 .. 5000
3 loop
4 for x in ( select ename, empno, hiredate from emp )
5 loop
6 null;
7 end loop;
8 end loop;
9 end;
10 /
PL/SQL procedure successfully completed.
1.2
ORA920> declare
2 l_ename dbms_sql.varchar2_table;
3 l_empno dbms_sql.number_table;
4 l_hiredate dbms_sql.date_table;
5 begin
6 for i in 1 .. 5000
7 loop
8 select ename, empno, hiredate
9 bulk collect into l_ename, l_empno, l_hiredate
10 from emp;
11 end loop;
12 end;
13 /
PL/SQL procedure successfully completed.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9460545/viewspace-912388/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9460545/viewspace-912388/