What is cursor ? And what is difference between Trigger ?

Answer Posted / adisha

CURSOR:
1.They are temporary work areas.
2.They are not stored independently in the database.
3.We can create cursor both implicitly and explicitly.
4.Cursors can take parameters.
5.They are used to process the result of query.

TRIGGER:
1.They are named PL SQL blocks.
2. They are stored in database.
3. They can be invoked automatically.
4. They cannot take parameters.
5. They are used to enforce data in dignity rules.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an inner join?

709


What are the export options of ssrs?

151


How to recover from sql injection? : sql server security

702


What are the transaction properties?

735


Explain the steps to use transact-sql cursor?

668






What is a trigger? Why we need it?

691


What is difference between unique and primary key?

651


What is unique key constraint?

808


How to find out what is the default collation in a database?

794


what number files will a information contain in SQL Server? How many forms of information files exist in SQL Server? How many of those files can exist for a single database?

730


Explain the truncate command?

681


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

752


Tell me about joins in database system and explain each in detail.

802


Explain what is row_number function?

756


Does index slows down insert statements?

752