Collections:
Open and Close an Explicit Cursor in Oracle
How To Open and Close an Explicit Cursor in Oracle?
✍: FYIcenter.com
An existing cursor can be opened or closed by the OPEN or CLOSE statement as shown in the following sample script:
DECLARE
CURSOR c_list IS SELECT * FROM countries;
CURSOR t_list IS SELECT * FROM employees
WHERE employee_id = 100;
BEGIN
OPEN c_list;
OPEN t_list;
CLOSE c_list;
CLOSE t_list;
END;
/
⇒ Retrieve Data from an Explicit Cursor in Oracle
⇐ Define an Explicit Cursor in Oracle
2018-07-22, 2536🔥, 0💬
Popular Posts:
How To Change the Password for Your Own User Account in MySQL? If you want to change the password of...
How To Get Year, Month and Day Out of DATETIME Values in SQL Server Transact-SQL? You can use DATEPA...
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
How AdventureWorksLT tables are related in SQL Server? There are 12 user tables defined in Adventure...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...