I\'d like to pull a table\'s field names from MySql into python, and I know that
\'show columns from project\'
will work. And I\'ve read that
You can query MySQL's information_schema database directly for the fieldnames:
information_schema
select distinct(COLUMN_NAME) from information_schema.COLUMNS where TABLE_NAME='posts';