查询物理表字段(mysql)

SELECT
t.COLUMN_NAME AS NAME,
(
CASE
WHEN t.IS_NULLABLE = 'YES'
THEN '1'
ELSE '0'
END
) AS ISNULL,
(t.ORDINAL_POSITION * 10) AS sort,
t.COLUMN_COMMENT AS comments,
t.COLUMN_COMMENT AS title,
t.COLUMN_TYPE AS jdbcType
FROM
information_schema.`COLUMNS` t
WHERE t.TABLE_SCHEMA =
(SELECT
DATABASE())
AND t.TABLE_NAME = ('zbapp_expose')
ORDER BY t.ORDINAL_POSITION

上一篇:使用img2html把图片转为网页


下一篇:[转]C# NPOI 导入与导出Excel文档 兼容xlsx, xls