The clauses MUST appear in the order shown above.
Code Example:1 USE world;2 SELECT name3 FROM city4 WHERE CountryCode = “AFG”5 ORDER BY name6 LIMIT 3
1 USE world;2 SELECT name3 FROM city4 WHERE CountryCode = “AFG”5 ORDER BY name6 LIMIT 3
Results:
Let us break the statement line by line:
USE world;
SELECT name
FROM city
ORDER BY name
LIMIT 5;
Table 1. Column Specifications
Base Table Value
Show all columns
Column Name
Comma-separated list of column names
Calculated Value
Calculation result
Arithmetic expression
Functions