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 |
What is the significance of null value and why should we avoid permitting null values?
What is Replication?
How does stuff differ from the replace function?
What is a data source or ds? : sql server analysis services, ssas
What is a Stored Procedure?
What is table join?
Explain query editor regions
my problem is tempdb tempdb(dbname) 77752.95 MB(db size) 25345.03 MB (unallocated size) suppose i increased temp db size 10 gb . after increase the temp db showing 87 gb (dbsize) 25346.03MB(unallocated size)--unallocated size is showing same .please clarify.
Find top Nth employee from each department in terms of salary?
What are the results of running this script?
What is the difference between push and pull subscription? : sql server replication
How to get the definition of a stored procedure back?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)