What exactly the difference between 'TABLE OF' and 'REF CURSOR' in PL/SQL?For what purposes these both might be used?
Latest Answer: A ref cursor is a dynamic cursor in which the contents of cursor can be changed dynamically at run time depending upon our requirement.A ref cursor is basically a data type. A variable declared based on such data type is called cursor variable. We can ...
how to pass result set using refcursor from one package procedure to another package procedure? and code also
Latest Answer: CREATE TABLE employees (empid NUMBER(5),empname VARCHAR2(30));INSERT INTO employees (empid, empname) VALUES (1, 'Dan Morgan');INSERT INTO employees (empid, empname) VALUES (2, 'Jack Cline');INSERT INTO employees (empid, empname) ...
Which two statements are true?A. A function must return a value.B. A procedure must return a value.C. A function executes a PL/SQL statement.D. A function is invoked as part of an expression.E. A procedure must have a return Data
Assume that I am using a temporary table in a procedure and I am inserting records and updating another set of records through Merge statement. If I use cursor in that temporary table, How can I extract
Latest Answer: Create Global temporary tables and say on commit preserve rows. The global temporary tables have data available till the session is active. So you if you insert it at one procedure and want to access it somewhere else you can do that very easily till ...
Latest Answer: A Table is a basic unit of storage in oracle.A nested table is a collection type. The main advantage of collections is instead of processing data sequentially, we may process all the date in one step.- It is a collection of rows stored ...
What are the types of cursors apart from explicit and implicit cursors ? Explain when and where they are used ?
Latest Answer: There are only two types of cursors in oracle Pl/sql.1. Implicit cursors2. Explicit cursors We can define an explicit cursor as static or dynamic (REF CURSOR). The difference between these two is 1. ...
SELECT APE.DAT_INSERT_DATE as "Payment Entry Date", Case when APE.TXT_INTERMEDIARY_CD is null or APE.TXT_PAYER_CUSTOMER_ID APE.TXT_INTERMEDIARY_CD then (Select TXT_CUSTOMER_NAME from GENMST_CUSTOMER
Latest Answer: create or replace procedure sql_to_procedure as declare cursor c1 is SELECT APE.DAT_INSERT_DATE as "Payment Entry Date",APE.TXT_INTERMEDIARY_CD AS "Intermediary ID",APE.TXT_PAYER_CUSTOMER_ID as "CustomerID/Payer ID",TXT_CUSTOMER_NAME ...
Latest Answer: Yes using pragma autonomous_transaction as per example below for commit.we have two table employee and employee_bak of same structure (empid, emp_name, location, manager_id)--autonomous procedure will insert value in employee_bak, procedure is getting ...
When a table is in state of transition it is said to be mutating. eg :: If a row has been deleted then the table is said to be mutating and no operations can be done on the table except select.
Latest Answer: Mutate means chage. Mutating table is a table that is being modified by update, delete or insert statement. ...
Char(20) = 'name'
varchar2(20)='name'
When comparing these two values, are the spaces padded in char are considered or not? Are both values equal?
View page << Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>

Go Top