The SELECT statement is used to select or fetch the data from one or more database tables. The result of the SELECT statement is called a result set that is a list of rows, each consisting of the same number of columns.
To select the existing table, use the following syntax:
Parameters:
tablename: The table name from which you want to fetch data.
conditions: The conditions optional parameter.
Note:
In the above example, we are fetching data for selected fields.
You can use MySQL Command Line Client to fetching data from existing table. It will look like this:
Note:
In the above example, we are fetching data for all fields.
You can use MySQL Command Line Client to fetching data from existing table for all fields. It will look like this: