1.what is the difference between view and cursor?
2.If we do any change in view will it affect the
database,similarly when we do changes in cursor will it
affect the databse?with certain example?Thanks
Answers were Sorted based on User's Feedback
Answer / shaik
There is no affect in DB while changing in both casess.
Is This Answer Correct ? | 21 Yes | 5 No |
Answer / sripathi venkata ramesh
I am Sripathi Venkata Ramesh from Gudivada.
1. The answer for view and cursor is mentioned below
Views: Views are used to retrieve date or Update the data
Cursors: Cursors are used to execute the data row by row or
record by record.
There are 2 types of cursors.
1. Implicit cursor: It returns only one
row
2. Explicit cursor: It returns more
than one row
Is This Answer Correct ? | 19 Yes | 7 No |
Answer / bindu
Both Cursors and Views doesn't store data , so their is no chance to affect the DB.
Is This Answer Correct ? | 4 Yes | 5 No |
Answer / avinash
Change in view would not reflect chg in db but in cursor it
would.
Is This Answer Correct ? | 5 Yes | 32 No |
Explain about local stored procedure?
What type of Index will get created after executing the above statement?
How to turn off warning messages during php execution?
What is the maximum length of an alert name?
Magic Tables ?
What are alternate keys?
When should you use an instead of trigger?
How to create user messages with print statements in ms sql server?
What is the difference between UNION and UNIONALL?
5 Answers CarrizalSoft Technologies, CTS,
How can I track the changes or identify the latest insert-update-delete from a table?
What is spid in sql server profiler?
Difference between Triggers and Stored Procedure
23 Answers Claimat, HCL, Protech, Silgate,