SELECT
column_name,
column_comment,
data_type
FROM
information_schema. COLUMNS
WHERE
table_name = 'tablename'
AND table_schema = 'database_name'
SELECT
column_name,
column_comment,
data_type
FROM
information_schema. COLUMNS
WHERE
table_name = 'tablename'
AND table_schema = 'database_name'
本文标题:MySQL查询表字段信息
本文链接:https://www.haomeiwen.com/subject/giqrkctx.html
网友评论