1SELECT COLUMN_NAME AS `Field`, COLUMN_TYPE AS `Type`, IS_NULLABLE AS `NULL`,
2 COLUMN_KEY AS `Key`, COLUMN_DEFAULT AS `Default`, EXTRA AS `Extra`
3FROM information_schema.COLUMNS
4WHERE TABLE_SCHEMA = 'schemaName' AND TABLE_NAME = 'table1';