SQL: What is main difference between views and cursor?
Answers
Answered by
0
A cursor is defined and used within the scope of a stored procedure (it is used with PL/SQL). 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).
Similar questions