Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

SELECT

SELECT

The SELECT command retrieves data from a database, storing the returned data in a result table known as the result set.

The provided SQL statement selects the “CustomerName” and “City” columns from the “Customers” table:

Example

SELECT CustomerName, City FROM Customers;

The subsequent SQL statement retrieves all columns from the “Customers” table:

Example

SELECT * FROM Customers;