top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between a View and a Cursor?

+2 votes
1,754 views
What is the difference between a View and a Cursor?
posted Jan 13, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Difference between View and Cursor

A cursor is defined and used within the scope of a stored procedure (it is used with PL/SQL) and views are used to retrieve data or Update the data.

On the other hand, a view is a database object (similar to a table), which can be used even outside of stored procedures as well, as in queries (it can be used with both SQL and PL/SQL) and cursors are used to execute the data row by row or
record by record.

There is no affect in DB while changing in both cases.

answer Jan 16, 2017 by Pramod Huilgol
...