1、查询表字段
select d.db_id, d.NAME db_name, t.tbl_id, t.tbl_name, t.tbl_type, from_unixtime(t.create_time) create_time,
c.column_name, c.type_name column_type, c.comment column_desc
from TBLS t
inner join DBS d on t.DB_ID = d.DB_ID
inner join SDS s on t.SD_ID = s.SD_ID
inner join COLUMNS_V2 c on s.CD_ID = c.CD_ID
where 1 = 1 and (t.tbl_name like '%26526%' or c.column_name like '%26526%' or t.tbl_id = '26526')
order by d.DB_ID, d.NAME, t.TBL_ID, t.TBL_NAME
博客主要提及了查询表字段这一信息技术相关操作,涉及数据库查询方面内容。

8154

被折叠的 条评论
为什么被折叠?



