1. how to use the check option constraints in sql query..?
2.how to add data in a complex query ?
3.is it possible to use commit or rollback or savepoint in
triggers...if not why please explain with examples...?
4.what is the difference between meterialized view and
normal view..how to create materialized view and how to use
it..?
5.what is varray...? what is the advantage of the varray ?
please expalin with a simpel example..i want to load into a
table (student no and name and his marks..) please give
example..
6.what are the bulk bind exceptions...how to use bulk bind
and how to use bulk collect..please explain with example...
7.what is for update of and where current of ...?
8 what is the use of nowait ?
9.please give an example for nocopy in a simple plsql query
10.create an index in a table...tellme how to use the
index in a where clause to do performance tunning...
1.when will you use week refcursor and when will you use
strong ref cursor ?
2.what is the use of sql trace..how do you use it ?
3.can you please send all the sql plus commands...like set
line 6000....
declare
v_count number(8,3);
v_sal scott.emp.sal%type := '&P_sal';
cursor cur_name is select sal from scott.emp where sal
between (v_sal-100) and (v_sal +1000);
begin
v_count :=nvl(sql%rowcount ,0);
if v_count = 0 then
dbms_output.put_line('no records are fetch in the given sal
range');
else
dbms_output.put_line('There is/are '||to_char(v_count)||
' salaries are selected in the given range ');
end if;
end;
in the above programm .....for any sal range ....always it
shows the following message..
no records are fetch in the given sal range
please find the mistake and share with me...with thansk and
regards..sarao....