Find the CREATE TABLE Mistake
Find the Mistake Easy
Question
This CREATE TABLE has an error. Find and fix it:
Code
CREATE TABLE users (
id SERIAL PRIMARY KEY
name TEXT NOT NULL
);
Hint
How do you separate column definitions?
Explanation
The missing comma after PRIMARY KEY causes a syntax error. Column definitions must be separated by commas. Fix: id SERIAL PRIMARY KEY, name TEXT NOT NULL.
Related Resources
Related Lessons
- Tables
Learn CREATE TABLE syntax.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.