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

What are the lambda triggers?

654


Difference between DELETE and TRUNCATE?

790


What are the steps to process a single select statement?

686


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

780


How to copy data from one table to another table?

738






How do I delete a sql server database?

722


What is an execution plan? When would you use it?

728


tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

749


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

715


What is mapping schema?

767


Can you roll back the ddl statement in a trigger?

695


What is the library index called?

773


How to create user messages with print statements in ms sql server?

765


How can I tell if sql server is 32 or 64 bit?

707


What is partition index in sql server?

798