mysql - SHOW FIELDS but with filter on field type? -
I have a MySQL database with several tables with many fields.
Is there a basic way to find only the fields of type TEXT
For MySQL 5+, you must INFORMATION_SCHEMA
:
SELECT TABLE_NAME, COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE = 'TEXT';
Comments
Post a Comment