🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Databases Beginner

What is Schema?

The structure definition of a database including tables, columns, data types, relationships, indexes, and constraints.

A database schema defines what data can be stored and how it is organized. It includes table definitions (CREATE TABLE), column types (VARCHAR, INTEGER, TIMESTAMP), constraints (NOT NULL, UNIQUE, CHECK), relationships (FOREIGN KEY), and indexes.

In PostgreSQL, schemas also refer to namespaces within a database (public schema is the default). Schema design decisions significantly impact application performance, data integrity, and development speed. Good schema design follows normalization principles while balancing query performance needs.

Related Terms

Transaction
A sequence of database operations that are treated as a single unit — either all succeed or all are rolled back.
Full-Text Search
A technique for searching natural language text in databases using word stemming, ranking, and relevance scoring.
NoSQL
A category of databases that store data in non-tabular formats, optimized for specific data models and access patterns.
Data Warehouse
A centralized repository optimized for analytical queries that integrates data from multiple operational sources.
Trigger
A database object that automatically executes a specified function when certain events (INSERT, UPDATE, DELETE) occur on a table.
View
A virtual table defined by a SQL query that provides a simplified or restricted view of data from one or more tables.
View All Databases Terms →