English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Usage and Examples of SQL FROM Keyword

SQL Keyword Reference

FROM

The FROM command is used to specify which table to select or delete data from.

The following SQL statement selects the 'CustomerName' and 'City' columns from the 'Customers' table:

 SELECT CustomerName, City FROM Customers;

The following SQL statement selects all columns from the 'Customers' table:

 SELECT * FROM Customers;

The following SQL statement deletes the customer 'Alfreds Futterkiste' from the 'Customers' table:

 DELETE FROM Customers
 WHERE CustomerName='Alfreds Futterkiste';

SQL Keyword Reference