To print a table in MySQL, you can use the SELECT statement with the * wildcard to select all columns in the table, and the FROM keyword to specify the table name. The basic syntax is as follows:
SELECT * FROM table_name;
For example, if you have a table called "customers" in your database, you can print all the data in the
table by executing the following command:
SELECT * FROM customers;
This will display all the rows and columns in the "customers" table. You can also specify specific columns to
display by replacing the * wildcard with the column names separated by commas:
SELECT column1, column2, column3 FROM customers;
This will display only the specified columns in the "customers" table.