mysql show tables columns code example
Example 1: mysql show all tables
show tables;
Example 2: MySql get fields of table
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'my_database' AND TABLE_NAME = 'my_table';
Example 3: mysql show table fields
DESCRIBE my_table;
Example 4: mysql command show tables
mysql -u user -p