1. 程式人生 > >MYsql查看表類型 備註

MYsql查看表類型 備註

允許 sel 是否 select incr 小數位數 maximum imu 數據

SELECT
COLUMN_NAME,
DATA_TYPE AS `數據類型`,
CHARACTER_MAXIMUM_LENGTH AS `字符長度`,
NUMERIC_PRECISION AS `數字長度`,
NUMERIC_SCALE AS `小數位數`,
IS_NULLABLE AS `是否允許非空`,
CASE WHEN EXTRA = ‘auto_increment‘ THEN 1 ELSE 0 END AS `是否自增`,
COLUMN_DEFAULT AS `默認值`,
COLUMN_COMMENT AS `備註`
FROM information_schema.COLUMNS WHERE TABLE_NAME=‘BATTLEFIELD_DECISION‘

MYsql查看表類型 備註