What is the SELECT statement used for in SQL?
The SELECT statement is used to select data from a database.
What is the syntax for the following?
SELECT column1, column2, …
FROM table_name;
Here, column1, column2, … are the field names of the table you want to select data from.
The table_name represents the name of the table you want to select data from.
What do you do if you want to return all columns without specifying every column name?
If you want to return all columns, without specifying every column name, you can use the SELECT * syntax:
Example
SELECT * FROM Customers;