标签:获取数据 info 数据表 ble schema 获取 orm 字段 默认值
SELECT
COLUMN_NAME 列名,
COLUMN_TYPE 数据类型,
DATA_TYPE 字段类型,
CHARACTER_MAXIMUM_LENGTH 长度,
IS_NULLABLE 是否为空,
COLUMN_DEFAULT 默认值,
COLUMN_COMMENT 备注
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_schema =‘dbname‘
AND
table_name = ‘tablename‘
标签:获取数据 info 数据表 ble schema 获取 orm 字段 默认值
原文地址:http://www.cnblogs.com/daixiaotian/p/6755348.html