select columns of table mysql code example
Example 1: get the mysql table columns data type mysql
SHOW COLUMNS FROM mydb.mytable;
Example 2: mysql select all columns and specific fields as
SELECT mytable.*, column20 AS Customer, column11 FROM mytable
-- OR
SELECT column11, column20 AS Customer, mytable.* FROM mytable