Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
we use indexing for fetching or retrieving data quicker and cursor used for retrieving data in row set but i want to clear what is the meaning of actual row set or if we use two different code programmed for same table one from index and another use of cursor what is output and what is difference .................


please clear doubt

thanks in advance

What I have tried:

I want to clear the core concept of indexing and cursor programmer for same table and for same result set with indexed and non indexed table
Posted
Updated 6-May-16 19:18pm
Comments
Patrice T 7-May-16 0:51am    
ask Google !
aarif moh shaikh 7-May-16 3:16am    
Do google.

1 solution

Indexing and cursors are two different concepts and cursors will use indexes.
Cursor (databases) - Wikipedia, the free encyclopedia[^]
Database index - Wikipedia, the free encyclopedia[^]

As for performance, when you are using cursors you are iterating through the result set and the bottle neck will be your code and not the cursor, and generally if you can do the work without the cursor you are better off.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900