Your first SELECT
Lesson 1 of 24 · SQL.Micro
A database stores data in tables: rows are records, columns are fields. SELECT is how you ask a table for its data.
SELECT * FROM products; returns every column of every row.
* means all columns. FROM names the table.
A semicolon ends the statement. Keywords are not case-sensitive, but writing them in capitals helps reading.
Check yourself
What does * mean in SELECT *?
Show every column of every row in the products table.
Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.
Start this lesson — free