You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Oracle SQL查询:将指定列的表列信息转为表格格式

获取表关联指定列名的表格格式结果

现有用于查询列名的SQL语句:

select table_name , COLUMN_NAME
from all_tab_columns 
where column_name in ('COLUMN_1','COLUMN_2','COLUMN_3','COLUMN_4') 
group by table_name, column_name;

期望输出为每行对应一个表,列展示各个指定列名,示例格式如下:

TABLE_NAMECOLUMN_NAMECOLUMN_NAMECOLUMN_NAME
Table_aColumn_1Column_2Column_3
Table_bColumn_1Column_2Column_3
Table_cColumn_1Column_2Column_3

内容的提问来源于stack exchange,提问作者S_raj

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 16:42:34