What are cursors?

Answer Posted / kuttikrishnan kodoth

if we ant to retrive data from a database table having
duplicate entries which violates primarykey rule
we can handle this case using cursor, it by declaring a
cursor which would check the
records during retreival one by one and remove rows which
have duplicate values. there are many types of cursors to
fetch data in diffrent order like fetch first,fetch
last ,fetct prior,fetch next,fetch abslute n,fetch relative
n

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can two tables have the same primary key?

563


Explain the various types of concurrency problem?

696


Describe in brief databases and sql server databases architecture.

524


Do you know how to send email from database?

550


what is a self join? : Sql server database administration

522






What are date and time data types in ms sql server?

525


What is query parameter in ssrs?

118


Write a SQL query to delete a table?

649


What is openxml in sql server?

614


when you create a database how is it stored? : Sql server database administration

491


What is cached report?

106


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

561


Can select statements be used on views in ms sql server?

580


How do I start sql server 2016?

525


What do you understand by replication in sql server?

569