Basic Oracle Concepts and Programming Question: Download Questions PDF
How To Define a Specific RECORD Type?
![Oracle Database Interview Answer Oracle Database Interview Question](https://globalguideline.com/public/images/interview/12.png)
Answer:
f you want to define a specific RECORD type, you need to use the TYPE ... IS RECORD statement in the declaration part of any procedure or function. The following example script defines a RECORD type called STUDENT:
CREATE OR REPLACE PROCEDURE HELLO AS
TYPE student IS RECORD (
id NUMBER(5),
first_name VARCHAR(80),
last_name VARCHAR(80)
);
BEGIN
NULL;
END;
/
CREATE OR REPLACE PROCEDURE HELLO AS
TYPE student IS RECORD (
id NUMBER(5),
first_name VARCHAR(80),
last_name VARCHAR(80)
);
BEGIN
NULL;
END;
/
Download Oracle Database Interview Questions And Answers
PDF
Previous Question | Next Question |
What Is a RECORD in PL/SQL? | How To Define a Variable of a Specific RECORD Type? |