mysql> SELECT * FROM tablename;
To show all data from a table in MySQL, you can use the SELECT
statement. The basic syntax is as follows:
sql
SELECT * FROM your_table_name;
Replace your_table_name
with the actual name of your table. The *
is a wildcard character that represents all columns in the table.
For example, if you have a table named “employees,” the query would be:
sql
SELECT * FROM employees;
This query will retrieve all rows and columns from the specified table.