how to see columns of a table in mysql code example
Example 1: show table columns mysql command line
SHOW COLUMNS from tablename;
Example 2: get the mysql table columns data type mysql
SHOW COLUMNS FROM mydb.mytable;
SHOW COLUMNS from tablename;
SHOW COLUMNS FROM mydb.mytable;