Hive 元数据信息查询
查询指定仓库的表及表备注信息
select
t.TBL_NAME,tp.param_value
from TBLS T left join
TABLE_PARAMS tp
on t.tbl_id=tp.tbl_id
where ( t.TBL_NAME like 'ods%'
or t.TBL_NAME like 'dw%'
or t.TBL_NAME like 'dim%')
and tp.param_key='comment'
and
select
t.TBL_NAME,tp.param_value
from TBLS T left join
TABLE_PARAMS tp
on t.tbl_id=tp.tbl_id
where ( t.TBL_NAME like 'ods%'
or t.TBL_NAME like 'dw%'
or t.TBL_NAME like 'dim%')
and tp.param_key='comment'
and