Last Updated: February 25, 2016
·
528
· mfrost503

finding column names in large tables

everyone knows that you can dump all the column attrs out with a describe <tablename> query. let's say there is a large table and you have an idea of the column name...

SHOW columns in <tablename> like 'searchterm'

Same thing for table names

SHOW tables in <database> like 'searchterm'

wildcards (%) can help you narrow your results down.