Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes pl sql (sql01)

Rating
-
Sold
-
Pages
7
Uploaded on
25-03-2022
Written in
2013/2014

Lecture notes of 7 pages for the course pl sql at Kerala University (plsql datatypes)

Institution
Course

Content preview

PL/SQL - Data Types
In this chapter, we will discuss the Data Types in PL/SQL. The PL/SQL variables,
constants and parameters must have a valid data type, which specifies a storage
format, constraints, and a valid range of values. We will focus on the SCALAR and
the LOB data types in this chapter. The other two data types will be covered in
other chapters.

S.No Category & Description



1 Scalar
Single values with no internal components, such as a NUMBER, DATE, or BOOLEAN.


Large Object (LOB)
2
Pointers to large objects that are stored separately from other data items, such as text,
graphic images, video clips, and sound waveforms.


Composite
3
Data items that have internal components that can be accessed individually. For
example, collections and records.


4 Reference
Pointers to other data items.


PL/SQL Scalar Data Types and Subtypes
PL/SQL Scalar Data Types and Subtypes come under the following categories −

S.No Date Type & Description



1 Numeric
Numeric values on which arithmetic operations are performed.


2 Character
Alphanumeric values that represent single characters or strings of characters.

3
Boolean

, Logical values on which logical operations are performed.


4 Datetime
Dates and times.

PL/SQL provides subtypes of data types. For example, the data type NUMBER has
a subtype called INTEGER. You can use the subtypes in your PL/SQL program to
make the data types compatible with data types in other programs while embedding
the PL/SQL code in another program, such as a Java program.

PL/SQL Numeric Data Types and Subtypes
Following table lists out the PL/SQL pre-defined numeric data types and their sub-
types −

S.No Data Type & Description



1 PLS_INTEGER
Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits


2 BINARY_INTEGER
Signed integer in range -2,147,483,648 through 2,147,483,647, represented in 32 bits


3 BINARY_FLOAT
Single-precision IEEE 754-format floating-point number


4 BINARY_DOUBLE
Double-precision IEEE 754-format floating-point number


NUMBER(prec, scale)
5
Fixed-point or floating-point number with absolute value in range 1E-130 to (but not
including) 1.0E126. A NUMBER variable can also represent 0


6 DEC(prec, scale)
ANSI specific fixed-point type with maximum precision of 38 decimal digits

7
DECIMAL(prec, scale)

Written for

Institution
Course

Document information

Uploaded on
March 25, 2022
Number of pages
7
Written in
2013/2014
Type
Class notes
Professor(s)
Fousia
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sreejipradeesh

Get to know the seller

Seller avatar
sreejipradeesh COLLEGE OF ENGINEERING, KOTTARAKKARA
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
4 year
Number of followers
1
Documents
24
Last sold
4 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions