what is cursor?why we will go to cursor?advantages &disadvantages of cursors?
Answer / ramya gurrala
Cursor is a pointer(in c/java).Cursor work with DML and information can be accessed.
Cursor is required to process each row individually for queries which return multiple rows.
Advantages:1)We can do operations on each row.
2)Response time is good.
3)Cursors are faster than the while loop.
Disadvantages:1)Repeated network round trips.
2)Occupies more resources and temporary storage.
| Is This Answer Correct ? | 1 Yes | 0 No |
Mention the differences between local and global temporary tables.
Where do you think the users names and passwords will be stored in sql server?
Write an sql query for deleting duplicate rows?
What do you understand by physical_only option in dbcc checkdb?
How to create an identity column?
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
Explain about system database?
what is a transaction? : Sql server database administration
Is it possible for a stored procedure to call itself or recursive stored procedure?
Your table has a large character field there are queries that use this field in their search clause what should you do?
Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?
What command do we use to rename a db?
Oracle (3253)
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)