Skip to content

List all columns from all tables in a MySQL Database

SELECT table_schema, table_name, column_name, column_type FROM information_schema is
WHERE table_schema = 'your_table_schema'
ORDER BY table_name, ordinal_position;
See also  PHP code snippet - How to bulk insert array into sql ?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.