Deriving the EXCEL MYSQL table structure (including the data type, field Notes Note)
The SELECT
"column name",
"data type",
"Field Type",
"Length",
"is empty",
"Default",
"Note"
the FROM
Dual
Union All
the SELECT
COLUMN_NAME column name,
COLUMN_TYPE data type,
the DATA_TYPE field type ,
CHARACTER_MAXIMUM_LENGTH length,
IS_NULLABLE is empty,
the COLUMN_DEFAULT defaults,
COLUMN_COMMENT Note
the FROM
INFORMATION_SCHEMA.COLUMNS
the WHERE
table_schema ='ceshidaoru'
AND
table_name = 'sssdsds'
The SELECT
"column name",
"data type",
"Field Type",
"Length",
"is empty",
"Default",
"Note"
the FROM
Dual
Union All
the SELECT
COLUMN_NAME column name,
COLUMN_TYPE data type,
the DATA_TYPE field type ,
CHARACTER_MAXIMUM_LENGTH length,
IS_NULLABLE is empty,
the COLUMN_DEFAULT defaults,
COLUMN_COMMENT Note
the FROM
INFORMATION_SCHEMA.COLUMNS
the WHERE
table_schema ='ceshidaoru'
AND
table_name = 'sssdsds'