mysql all columns 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;
SHOW COLUMNS FROM mydb.mytable;
-- MySQL
SELECT *
FROM INFORMATION_SCHEMA.COLUMNS;