Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


1. is it possible to use the cursor atttibutes (%found ,%
rowcount , %isopen , %notfound ) to our user defined cursor
names .......



cursor cursor_name is select * from scott.emp



if you use...



cursor_name%found , %rowcount ,%isopen,%notfound...will it
work...

--------------------------





2.what is the difference between the varray and index by
table ..



--------



3.

type type_name is table of number(8,3)

index by binary_integer;

identifier_name type_name;



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...



1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our u..

Answer / Richa Bansal

The methods you mentioned (first, last, prior, next, trim) are not applicable to Varrays or Index by tables. They are cursor-related functions in PL/SQL used for traversing the result set of a cursor.
To apply these functions to cursors, you can follow these steps:
1. Declare a cursor with SELECT statement.
2. Open the cursor using OPEN keyword.
3. Fetch rows from the cursor using FETCH statement or LOOP construct.
4. Use cursor manipulation functions like PRIOR, NEXT, LAST, and FIRST to navigate through the result set.
5. Close the cursor when done using CLOSE keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is the size of partition table?

1 Answers  


Is sql a backend?

1 Answers  


What are the constraints available in sql?

1 Answers  


Which is better join or subquery?

1 Answers  


What is extent clause in table space?

1 Answers   TCS,


How many tables can you join in sql?

1 Answers  


what is check constraint? : Sql dba

1 Answers  


What is your daily office routine?

0 Answers   Data Vision,


Write a query to find the name of employees those who have joined on Monday.(based on column hire_date)

15 Answers   Satyam,


What is recursive stored procedure?

1 Answers  


Give the structure of the function ?

2 Answers  


What are sql ddl commands?

1 Answers  


Categories