AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Success stories
Activities
Reviews
Subscriptions
Light theme
Lectures
Reviews
About us
CS50
Start
Start learning
Start learning
My progress
Courses
Quest map
Lectures
SQL
SQL
Level 17
Table Creation Basics: CREATE TABLE
SQL SELF
17 level,
0 lecture
On this page, you’ll learn how to create tables in PostgreSQL using the CREATE TABLE command, get familiar with the main data types, see some table creation examples, and check out common mistakes people make when designing tables.
Adding Constraints When Creating Tables: NOT NULL, UNIQUE
SQL SELF
17 level,
1 lecture
Learn how to use NOT NULL and UNIQUE constraints in PostgreSQL to protect your data from mistakes and duplicates. Examples, explanations, and tips for using them — everything you need to confidently start working with table constraints.
Using
DEFAULT
for default values
SQL SELF
17 level,
2 lecture
Learn how to use default values in PostgreSQL with the
DEFAULT
keyword. We'll look at examples of creating tables, inserting data, plus common mistakes and best practices for working with
DEFAULT
for different data types.
Working with the
CHECK
constraint for data validation
SQL SELF
17 level,
3 lecture
The
CHECK
constraint in databases is a built-in mechanism for automatically validating data when you add or update it. In this material, you'll learn how to use
CHECK
to protect your tables from logical errors, see syntax examples, and check out typical use cases.
Changing Table Structure with
ALTER TABLE
SQL SELF
17 level,
4 lecture
Learn how to flexibly change the structure of existing tables in PostgreSQL using the
ALTER TABLE
command: add and remove columns, change data types, rename tables and columns, and manage constraints. Practical examples and tips to avoid common mistakes.
Please enable JavaScript to continue using this application.