The SQL SELECT Statement
The SELECT
statement is used to select data from a database.
Example
Return data from the Customers table :
SELECT CustomerName, City FROM Customers;
The SELECT
statement is used to select data from a database.
Return data from the Customers table :
SELECT CustomerName, City FROM Customers;
Most of the actions you need to perform on a database are done with SQL statements.
SQL statements consist of keywords that are easy to understand.
The following SQL statement returns all records from a table named “Customers”:
Select all records from the Customers table:
SELECT * FROM Customers;
In this tutorial we will teach you all about the different SQL statements. Continue reading SQL Syntax