Data Types in Databases

Published July 23, 2025 By Sai Sree Ram Gundepudi

Common Data Types

  • VARCHAR2: Variable-length string
  • CHAR: Fixed-length string
  • NUMBER: Integer or decimal numbers
  • DATE: Date and time values
  • BLOB: Binary Large Object (e.g., images)

Example:

CREATE TABLE students (
  id NUMBER,
  name VARCHAR2(100),
  dob DATE
);

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article