Mysql field to get the name of a table in accordance with the order of design, field types, field description! ! ! ! !

Write sql statement

SELECT column_name, data_type, column_comment
 from from information_schema.columns   WHERE table_name = ' lookup table name '  and TABLE_SCHEMA = ' database name '  Order  By the ORDINAL_POSITION

carry out! ! ! !

Guess you like

Origin www.cnblogs.com/hekang-14/p/11223951.html