Вот PL/SQL-запрос, который я пытаюсь понять:Access Коллекция PL/SQL
TYPE REC_ASSMNTCOMP IS RECORD (RF_CUST_ID_REF NUMBER, RF_TIMESTAMP DATE, RF_BC_ID_REF NUMBER, RF_OP_COMPVALUE NUMBER);
TYPE TBL_ASSMNTCOMP_T IS TABLE OF REC_ASSMNTCOMP INDEX BY PLS_INTEGER;
TYPE TBL_ASSMNTCOMP IS TABLE OF TBL_ASSMNTCOMP_T INDEX BY PLS_INTEGER;
TYPE REC_ADJCOMP IS RECORD (RF_CUST_ID_REF NUMBER, RF_TIMESTAMP DATE, RF_BC_ID_REF NUMBER, RF_ADJ_COMPVALUE NUMBER);
TYPE TBL_ADJCOMP_T IS TABLE OF REC_ADJCOMP INDEX BY PLS_INTEGER;
TYPE REC_OPENCOMP IS RECORD (RF_BILLCYC_ID_REF NUMBER, RF_CUST_ID_REF NUMBER, RF_COMPTYPE NUMBER, RF_BC_ID_REF NUMBER, RF_COMPVALUE NUMBER);
TYPE TBL_OPENCOMP IS TABLE OF REC_OPENCOMP INDEX BY PLS_INTEGER;
V_DOC_ID NUMBER;
V_PROCESSING_DATE DATE;
V_TBL_ASSMNTCOMP TBL_ASSMNTCOMP;
V_TBL_ASSMNTCOMP_T TBL_ASSMNTCOMP_T;
V_TBL_ADJCOMP_T TBL_ADJCOMP_T;
V_TBL_OPENCOMP TBL_OPENCOMP;
IF V_TBL_ADJCOMP_T(I).RF_TIMESTAMP < V_TBL_ASSMNTCOMP(V_TBL_ADJCOMP_T(I).RF_CUST_ID_REF)(V_TBL_ASSMNTCOMP(V_TBL_ADJCOMP_T(I).RF_CUST_ID_REF).FIRST).RF_TIMESTAMP
THEN
Запутанной часть ниже:
V_TBL_ASSMNTCOMP(V_TBL_ADJCOMP_T(I).RF_CUST_ID_REF)(V_TBL_ASSMNTCOMP(V_TBL_ADJCOMP_T(I).RF_CUST_ID_REF).FIRST).RF_TIMESTAMP
что линия выше делает?
Я думаю, что это какая-то дьявольски сложная иерархическая структура. Каковы определения ТИПОВ этих переменных? –
@TonyAndrews TYPE REC_ASSMNTCOMP - ЗАПИСЬ (RF_CUST_ID_REF NUMBER, RF_TIMESTAMP DATE, RF_BC_ID_REF NUMBER, RF_OP_COMPVALUE NUMBER); – Zubair