SQL FROM Keyword


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:

Example

SELECT CustomerName, City FROM Customers;
Try it Yourself »

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

Example

SELECT * FROM Customers;
Try it Yourself »

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

Example

DELETE FROM Customers
WHERE CustomerName='Alfreds Futterkiste';

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.