Chapter 5. Data Definition
Table of Contents
- 5.1. Table Basics
- 5.2. Default Values
- 5.3. Identity Columns
- 5.4. Generated Columns
- 5.5. Constraints
- 5.2. Default Values
- 5.6. System Columns
- 5.7. Modifying Tables
- 5.8. Privileges
- 5.9. Row Security Policies
- 5.10. Schemas
- 5.9. Row Security Policies
- 5.11. Inheritance
- 5.12. Table Partitioning
- 5.13. Foreign Data
- 5.14. Other Database Objects
- 5.15. Dependency Tracking
- 5.14. Other Database Objects
This chapter covers how one creates the database structures that will hold one's data. In a relational database, the raw data is stored in tables, so the majority of this chapter is devoted to explaining how tables are created and modified and what features are available to control what data is stored in the tables. Subsequently, we discuss how tables can be organized into schemas, and how privileges can be assigned to tables. Finally, we will briefly look at other features that affect the data storage, such as inheritance, table partitioning, views, functions, and triggers.