0% found this document useful (0 votes)
70 views2 pages

Chapter.05 .Composite Data Type

This document discusses different composite data types in PL/SQL including varchar2, %rowtype, and generic records. It provides examples of declaring and using these data types like declaring a variable of type %rowtype to access all columns of the emp table, and using a generic record to store values of different types. The document also includes examples of the emp and dept tables with sample data.

Uploaded by

nono7890
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Chapter.05 .Composite Data Type

This document discusses different composite data types in PL/SQL including varchar2, %rowtype, and generic records. It provides examples of declaring and using these data types like declaring a variable of type %rowtype to access all columns of the emp table, and using a generic record to store values of different types. The document also includes examples of the emp and dept tables with sample data.

Uploaded by

nono7890
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 2

Composite data Type Practice

Code
varchar2(10)

Emp%rowtype
all data in emp table

gen_rec
varchar2(50)
v_var_loc

emp_table
emp_index empno
1
2
3
4
5
6
7
8
9
10
11
12
13
14

ename

job

sal

varchar2(50)
1 scott
2 ward
3 turner
4
5
6
7
8
9
10
11
12
13
14

dept% row type


all data in dept table

gen_rec

mp_table
hiredate

emp%rowtype

comm

deptno

mgr

v_dept_table_loc
index_dept deptno
dname
1
2
3
4

loc

You might also like