mysql 根据表名,获得数据库名、表名、字段名、字段注释、数据类型

SELECT
	table_schema 数据库名,
	table_name 表名,
	column_name 字段名,
	column_comment 字段注释,
	data_type 数据类型
FROM
	information_schema. COLUMNS
WHERE
	LOWER(table_name) = 'beyond';

猜你喜欢

转载自bugyun.iteye.com/blog/2405423