
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
What is MySQL Cursor? What are its main properties?
In Computer science and technology, a database cursor is a control structure that enables traversal over the records in a database. Cursor in MySQL is almost the same as a cursor in other databases. MySQL cursor is a kind of loop facility given to traverse in the result of SQL one by one. We can operate on every result by using the cursor in MySQL. Cursors are supported in stored procedures, functions, and triggers only. MySQL cursor is available from version 5 or greater. Followings are the three main properties of MySQL cursor −
READ ONLY
By using MySQL cursor, we cannot update any table.
Non-Scrollable
MySQL cursors always fetch the rows in one direction i.e. from top to bottom. In other words, we can say that we cannot fetch rows in reverse order and we cannot skip rows or jump to the specific row in result set.
Asensitive
MySQL cursor is asensitive in nature that is it cannot create a copy of the table. It is faster than the other type of cursor i.e. insensitive cursor.
- Related Articles
- What is Canva and what are its main features?
- What Is an Alimentary Canal and What Are Its Main Parts?
- What are the main features of MySQL?
- What are the different steps in using MySQL cursor?
- What is a triangle? Explain its properties.
- What are the properties of MySQL user variables?
- What is type 3 grammar? Explain its properties
- What is food? What are its main functions, and is there any source of food except plants and animal?
- (a) What is spinal cord? What is its main function?(b) Give the functions of medulla.
- What do you mean by a transaction in MySQL? Explain along with its properties?
- What are MySQL subqueries and its general categories?
- What is a solar cell panel? For what purpose is it used? State its two main advantages.
- What is Anorexia? What are its symptoms?
- What is silviculture? What are its advantages?
- What is the Main Memory?
