How to get the mysql table columns data type?

后端 未结 11 704
独厮守ぢ
独厮守ぢ 2020-12-02 06:23

I want to get the column data type of a mysql table.

Thought I could use MYSQLFIELD structure but it was enumerated field types.

Then I tried wi

11条回答
  •  渐次进展
    2020-12-02 06:47

    SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='SCHEMA_NAME' AND COLUMN_KEY='PRI'; WHERE COLUMN_KEY='PRI';

提交回复
热议问题