SQL stands for Structured Query Language. It is a language used to communicate with a database.
You can use SQL to manipulate databases and retrieve records.
An SQL SELECT statement allows you to retrieve data from a database.
The SQL SELECT * statement allows you to return all the data and fields from a table.
Keywords
SELECT
allows you to retrieve data from a database
SELECT *
allows you to return all the columns from a database table
A common mistake
Mistake:Using SELECT * is always the best method for returning data from a database table.
In fact:You should only use the SELECT * query when all fields are needed. Including unnecessary data can be frustrating for the person viewing and working with the results.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.Read the licence
The wording comes from each publisher. The layout and the links to your syllabus are ours.