SELECT * (ALL Columns)
An asterisk (*) is used after the SELECT to indicate that all columns are to be returned. This keeps you from having to specify all column names, so do not enter any column names when you use the * option. SELECT * should not be used in a host-language program, since extra columns may be added to the TABLE later, returning too many columns to the program. Host-language programs will be covered when we get to batch programming.
A simple SELECT statement format is:
SELECT [ALL | DISTINCT] [* | column1[, column2, ...]] FROM table1[, table2, ...];
Remember that the [ | ] symbols are only to show choices and are not a part of the finished statement.
> The asterisk (*) option is used to select all the columns in a table.
> The ALL option is used to select all values for a column, including duplicates.
> The DISTINCT option is used to suppress duplicate row values from being selected.
> The default between DISTINCT and ALL is ALL. Therefore, the ALL option never needs to be specified and is always implied, unless it is overridden by the DISTINCT option.
