Database Concepts (8th Edition)
Database Concepts (8th Edition)
8th Edition
ISBN: 9780134601533
Author: David M. Kroenke, David J. Auer, Scott L. Vandenberg, Robert C. Yoder
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 6, Problem 6.30RQ
Program Plan Intro

Cursor:

The term cursor is used to retrieve information in row by row fashion. If the records stored in the database table, which needs to be updated one row at a time is carried over by cursor.

  • It plays the major role in fetching a required row from the table in the database which holds numerous records.
  • Cursors are defined using SELECT statement.
  • It points the set of rows which is resulted from an SQL SELECT statement.
  • In general the cursor is placed in the first or last row.
  • It influences the performance of the SQL Server as it uses the SQL server instances memory, decrease network bandwidth, reduction in concurrency.
  • It’s recommended to avoid the use of cursor and the cursor can be replaced with WHILE loop, temporary tables, sub queries.

Types of cursor:

The types of cursor are listed below:

  • Forward-only cursor
  • Static cursor
  • Dynamic cursor
  • Keyset cursor

Blurred answer
Students have asked these similar questions
In a relational database, the number of columns in a table that are able to satisfy the constraints that have been defined may be decreased by the use of an operation called select. Which is it: the right answer or the erroneous answer?
In a relational database, the number of columns in a table that are able to satisfy the constraints that have been defined may be decreased by the use of an operation called select.Which is it: the right answer or the erroneous answer?
How do "logical clocks" contribute to ordering in distributed transactions?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr