MySql: Show columns but exclude everything except the field names

前端 未结 6 768
陌清茗
陌清茗 2021-01-30 13:36

I\'d like to pull a table\'s field names from MySql into python, and I know that

\'show columns from project\'

will work. And I\'ve read that

6条回答
  •  忘掉有多难
    2021-01-30 13:48

    SHOW COLUMNS FROM `table_name`
    

    This MySQL query will work best, it will show all fields of a MySQL table.

提交回复
热议问题