Oracle 视图 USER_ANALYTIC_VIEW_CALC_MEAS 官方解释,作用,如何使用详细说明
本站中文解释
_MAP
Oracle 视图 USER_ANALYTIC_VIEW_CALC_MEAS_MAP 是 Oracle 中一种用于指定分析视图 (Analytic View) 维度和度量关系的视图。它储存在 Oracle 数据字典和元数据中,以便在创建并定义分析视图时可以有效地提取相关记录,并根据维度的不同来计算度量值。
使用方法:
1. 在 Oracle 数据字典中首先查询 USER_ANALYTIC_VIEW_CALC_MEAS_MAP 视图,以了解数据表中列的具体信息:
SQL> SELECT * FROM USER_ANALYTIC_VIEW_CALC_MEAS_MAP;
2. 然后,根据你想要查询的字段,选择想要查询的字段,构建出 SQL 语句:
SQL> SELECT DIMENSION_NAME, DIMENSION_VALUE, MEASURE_NAME, MEASURE_AMOUNT
FROM USER_ANALYTIC_VIEW_CALC_MEAS_MAP
WHERE DIMENSION_NAME = ‘PRODUCT_ID’;
3. 系统将根据您在 SQL 语句中所定义的条件,显示出相应的信息:
DIMENSION_NAME | DIMENSION_VALUE | MEASURE_NAME | MEASURE_AMOUNT
—————————————————————–
PRODUCT_ID | 1001 | PRICE | 223
PRODUCT_ID | 1001 | QUANTITY | 20
官方英文解释
USER_ANALYTIC_VIEW_CALC_MEAS
describes the calculated measures in the analytic views owned by the current user. Its columns (except for OWNER
) are the same as those in ALL_ANALYTIC_VIEW_CALC_MEAS
.
See Also:
“ALL_ANALYTIC_VIEW_CALC_MEAS”