answersLogoWhite

0

The purpose of a cursor in a database is to provide an option to the programmer using which he/she can iterate through the contents of a table one record at a time and use it for processing. A sample cursor can be created using the below statement

DECLARE cursor_employee CURSOR FOR SELECT * FROM tbl_employee_info

The above cursor cursor_employee will contain the contents of the table tbl_employee_info and can be used by the programmer for manipulation one record at a time.

A Cursor may act like a DataStructure . it stores the record coming from the base table . in if we want ot retrive the date very fastly we will user cursors.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Basic Math

How do you get your cursor to turn into a vertical line in a text box?

To make your cursor turn into a vertical line (also known as an I-beam cursor) in a text box, simply place your mouse pointer over the text box where you want to type. The cursor will change automatically to the I-beam shape, indicating that you can start typing or select text. If you're using a touch device, tapping the text box will usually bring up the keyboard and place the cursor at that location.


Difference between the delete key an the back space?

The backspace key deletes to the left of the cursor, and the delete key deletes to the right of the cursor.


Which cursor attribute do you reference to determine the number of records that were deleted by a DELETE statement?

Sql%rowcount


What is the difference between overtype mode and insert mode?

The only difference between Insert Mode and Overtype Mode is that characters are placed in front of the text after the cursor in Insert Mode, where as existing characters are overwritten in Overtype Mode.


What the difference between enter and space bar delete and backspace?

The Enter key is used to execute commands or create a new line in text, while the Space bar adds a space between characters. The Delete key removes text or objects to the right of the cursor, whereas the Backspace key deletes text or objects to the left of the cursor. Essentially, Enter and Space serve different purposes for input and formatting, while Delete and Backspace are both used for deletion but affect different sides of the cursor.