Database Concepts (7th Edition)
Database Concepts (7th Edition)
7th Edition
ISBN: 9780133544626
Author: David M. Kroenke, David J. Auer
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
How does a "self-referencing table" work, and in what scenarios is it commonly used?
Convert this ER model to a list of tablesProvide the queries that implement the database
WRITE THE OF MYSQL IN PYTHON, JUST ANSWER THE 2ND QUESTION BY LOOKING AT THE FIRST QUESTION Create database and tables as given below by using Python. (a)  Market database (b)  Vendor: vendor id integer, vendor name varchar, license start date, license end date (c)  Item:itemidinteger,itemnamevarchar,itemtypevarchar, previous price float, last sold date date (d)  Auction: auction id integer, vendor id integer, item id integer, price float Choose primary and foreign keys depending on the relations in Market database design. Create arrays of at least 5 di↵erent records. Use these arrays to populate each table in the database.
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