前言
正文
查看数据库表相关信息
SELECT
table_name,table_rows,create_time,update_time
FROM
information_schema.tables
WHERE
table_schema = '数据库名'
AND
table_type = 'base table';
其中table_name代表表名,table_rows代表表数据量,create_time代表创建时间,update_time代表最后更新时间
查看数据库某一个表的相关信息
select COLUMN_NAME,COLUMN_COMMENT from information_schema.COLUMNS where table_name = 'evaluation_product_quota_value_score' and table_schema = 'mahout';
其中COLUMN_NAME代表列名,COLUMN_COMMENT代表注释