Home >> FAQs/Tutorials >> Oracle Tutorials
Oracle Tutorials - Scalar Data Types Supported in PL/SQL
(Continued from previous topic...)
How Many Scalar Data Types Are Supported in PL/SQL?
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.
(Continued on next topic...)
- Is PL/SQL Language Case Sensitive?
- How To Enter Comments in PL/SQL?
- What Are the Types of PL/SQL Code Blocks?
- What Is an Anonymous Block?
- What Is a Named Program Unit?
- What Is a Procedure?
- What Is a Function?
- How To Declare a Local Variable?
- How To Initialize Variables with Default Values?
- How To Assign Values to Variables?
- What Are the Arithmetic Operations?
- What Are the Numeric Comparison Operations?
- What Are the Logical Operations?
- How Many Categories of Data Types?
- How Many Scalar Data Types Are Supported in PL/SQL?
- How To Convert Character Types to Numeric Types?
- What Are the Execution Control Statements?
- How To Use "IF" Statements on Multiple Conditions?
- How To Use "WHILE" Loop Statements?
- How To Use "FOR" Loop Statements?
- What Is NULL in PL/SQL?
- How To Test NULL Values?