I tried to use the following SELECT into statement
Code:
select col1 into var1 from table
this worked fine if the result set returned is of single row..
and this stores a null value ie., '-' in var1 if the query returns multiple rows in the result set.
so i tried to use a cursor with the above select query and in case of multiple rows in the result set of the select query i want the var1 to be assigned the value of the last row in the result set.
hence i asked suggestion to the fetch last row value without traversing the cursor's result set in the above post..
hope this makes my requirement clear..
thanks,
Sn.