show table contents mysql command line code example
Example 1: mysql show table structure
DESCRIBE table_name; # To show table structure...
Example 2: print all records of table in mysql
SELECT * FROM TABLE_NAME;
OR
SELECT column_name_1, column_name_2 FROM TABLE_NAME;
Example 3: show table mysql
# First, select your database
USE yourDb;
# Then, simply
SHOW TABLES;
Example 4: mysql command show tables
SHOW TABLES;
Example 5: mysql show tables in database
show tables;
Example 6: mysql command show tables
mysql -u user -p