type type_name is table of varchar2(30) index by
for the above type you have to create a identifier...
for the above type you can use the below methods..like
first , last , prior, next , delege..etc...like this..
if you create a cursor...like
cursor cursor_name is select * from scott.emp;
is there any methods like above to use prior, fist , last ,
next , trim ,etc...
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);
v_count :=nvl(sql%rowcount ,0);
if v_count = 0 then
dbms_output.put_line('no records are fetch in the given sal
dbms_output.put_line('There is/are '||to_char(v_count)||
' salaries are selected in the given range ');
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
1. is it possible to use the cursor atttibutes (%found ,%
rowcount , %isopen , %notfound ) to our user defined cursor
cursor cursor_name is select * from scott.emp
if you use...
cursor_name%found , %rowcount ,%isopen,%notfound...will it
2.what is the difference between the varray and index by
type type_name is table of number(8,3)
index by binary_integer;
first , last , prior , next ,trim are the methods we can
use it for the above type...simillary is there any way to
apply for cursors...
with thanks and regards..sarao...
suppose I have two table one Emp and other is dpt.
Emp table has a field ,dept id,name ,sal and dpt table has a
field dept id,dept name.
Now I want to find out the emplyee list whose sal is between
2000-3000 from dept x.
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
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
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
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...
i am an comp science engineering graduate planning to do
ORACLE certification in PLSQL 9i. just wanted to know whats
the possibility getting job is their openings???? is it
worth doin that course n certification
in sql table follw columns r their
1234 |1FS |1-JAN|PUNE|
4561 |2FS |5-JAN|PUNE|
1234 |PS |7-JAN|PUNE|
1234 |PS |15-JAN|MUMB|
i want o/p below
PLS help me out to execute using sql query
What action do you have to perform before retrieving data
from the next result set of a stored procedure ?
i have 2 table table one 4 columns respective values a1
7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values
a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same
then 4th column values 1)Qes diff >5 then print 5 * diff
value 2)Que diff <5 print 5
in oracle 10g sw after compiling procedure how to pass
parameter values ,if we (v_empid out number)how to give
empid after successful compilation program.This site exact
suitable for 10g with respect to question & answer same
format , im trying sql browser & sql command prompt using
exec procedure name & respective parameters.
GLOBAL TEMPORARY TABLE over Views in advantages insolving