How to return field type from MySQL query?

后端 未结 5 722
北海茫月
北海茫月 2020-12-09 16:50

Simple question: How can I return the field type of a MySQL table. I know about describe or show column but I just want to return that single param

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 17:31

    The following syntax also works, using describe, enter the columnName after the tableName:

    describe tbleName columnName;
    

提交回复
热议问题