select column_name,data_type,character_maximum_lengthfrom information_schema.columnswhere table_name='table_name'