Skip to content

Instantly share code, notes, and snippets.

@cbandy
Last active May 14, 2018 20:39
Show Gist options
  • Save cbandy/282c896a3f6fb59b52feba4b062ec34e to your computer and use it in GitHub Desktop.
Save cbandy/282c896a3f6fb59b52feba4b062ec34e to your computer and use it in GitHub Desktop.
-- https://github.com/dimitri/pgloader/blob/master/src/sources/mysql/sql/list-all-columns.sql
-- mysql 5.0
+---------------------+---------------+------------------------+----------------+----------------+---------------------+----------------+-------------+-------+
| table_name | table_comment | column_name | column_comment | data_type | column_type | column_default | is_nullable | extra |
+---------------------+---------------+------------------------+----------------+----------------+---------------------+----------------+-------------+-------+
| corporate_contracts | | contract_value | | float unsigned | float unsigned | NULL | NO | |
+---------------------+---------------+------------------------+----------------+----------------+---------------------+----------------+-------------+-------+
-- mysql 5.7
+------------+---------------+-------------+----------------+-----------+----------------+----------------+-------------+-------+
| table_name | table_comment | column_name | column_comment | data_type | column_type | column_default | is_nullable | extra |
+------------+---------------+-------------+----------------+-----------+----------------+----------------+-------------+-------+
| ufloats | | f | | float | float unsigned | NULL | NO | |
+------------+---------------+-------------+----------------+-----------+----------------+----------------+-------------+-------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment