SQL Basics
The SELECT statement retrieves data from a table.
SELECT column1, column2 FROM table_name;
Use * to select all columns:
*
SELECT * FROM students;
The database will return a result set — a table of matching rows.