如何使用查询查找表类型值集的值

时间:2015-08-24 05:51:44

标签: sql oracle

我在oracle应用程序中工作,我想获取表类型值集的值。但我无法做到。

对于独立的值集,我使用以下查询:

SELECT flex_value
     INTO v_type_val
     FROM apps.fnd_flex_values_vl ffvv, apps.fnd_flex_value_sets ffvs
    WHERE ffvv.flex_value_set_id = ffvs.flex_value_set_id
      AND ffvs.flex_value_set_name = <Value Set Name>;

但是将它用于表类型值集会返回NULL

请帮帮我

1 个答案:

答案 0 :(得分:1)

select ffvs.flex_value_set_id ,
    ffvs.flex_value_set_name ,
    ffvs.description set_description ,
    ffvs.validation_type,
    ffvt.value_column_name ,
    ffvt.meaning_column_name ,
    ffvt.id_column_name ,
    ffvt.application_table_name ,
    FFVT.ADDITIONAL_WHERE_CLAUSE
FROM APPS.fND_FLEX_VALUE_SETS FFVS ,
    apps.FND_FLEX_VALIDATION_TABLES FFVT
WHERE FFVS.FLEX_VALUE_SET_ID = FFVT.FLEX_VALUE_SET_ID;