get table columns mysql code example
Example 1: show table columns mysql command line
SHOW COLUMNS from tablename;
Example 2: find a column in all tables mysql
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('columnA','ColumnB')
AND TABLE_SCHEMA='YourDatabase';