mysql show columns from all tables code example
Example 1: get the mysql table columns data type mysql
SHOW COLUMNS FROM mydb.mytable;
Example 2: mysql all columns
-- MySQL
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS;
Example 3: mysql show table fields
DESCRIBE my_table;