SELECT
COLUMN_NAME 列名,
DATA_TYPE 字段类型,
COLUMN_COMMENT 备注,
COLUMN_TYPE 数据类型,
IS_NULLABLE 是否为空,
COLUMN_DEFAULT 默认值
FROM
information_schema. COLUMNS
WHERE
TABLE_NAME = '表名'
AND TABLE_SCHEMA = '数据库'
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!