CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Table Creation Basics: CREATE TABLE

    SQL SELF
    Level 17, Lesson 0
    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.
    Available
  • Adding Constraints When Creating Tables: NOT NULL, UNIQUE

    SQL SELF
    Level 17, Lesson 1
    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.
    Available
  • Using DEFAULT for default values

    SQL SELF
    Level 17, Lesson 2
    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.
    Available
  • Working with the CHECK constraint for data validation

    SQL SELF
    Level 17, Lesson 3
    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.
    Available
  • Changing Table Structure with ALTER TABLE

    SQL SELF
    Level 17, Lesson 4
    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.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym