Scalar Data Types Supported in PL/SQL in Oracle

Q

How Many Scalar Data Types Are Supported in PL/SQL in Oracle?

✍: FYIcenter.com

A

PL/SQL supports many scalar data types divided into 4 groups:

  • Numeric Types: BINARY_DOUBLE, BINARY_FLOAT, BINARY_INTEGER, DEC, DECIMAL, DOUBLE PRECISION, FLOAT, INT, INTEGER, NATURAL, NATURALN, NUMBER, NUMERIC, PLS_INTEGER, POSITIVE, POSITIVEN, REAL, SIGNTYPE, SMALLINT.
  • Character Types: CHAR, CHARACTER, LONG, LONG RAW, NCHAR, NVARCHAR2, RAW, ROWID, STRING, UROWID, VARCHAR, VARCHAR2.
  • Boolean Types: BOOLEAN.
  • Date Types: DATE, TIMESTAMP, TIMESTAMP WITH TIMEZONE, TIMESTAMP WITH LOCAL TIMEZONE, INTERVAL YEAR TO MONTH, INTERVAL DAY TO SECOND.

 

Convert Character Types to Numeric Types in Oracle

Categories of Data Types in PL/SQL in Oracle

Understanding PL/SQL Language Basics

⇑⇑ Oracle Database Tutorials

2018-11-17, 1949🔥, 0💬