我在oracle中的查询是:
SELECT MON_INFRAESTRUCTURE_ID,
MON_LAYERPOINT_ID,
MON_CHANNEL_ID,
TO_CHAR(CONSOLIDATION_DATE,'MMYYYY'),
SUBSTR(MONITORED_METHOD,1,INSTR(MONITORED_METHOD,'.')+INSTR(MONITORED_METHOD,'.')),
MONITORED_METHOD_VERSION
FROM MON_FUNCTIONAL_1D
WHERE CONSOLIDATION_DATE BETWEEN TO_DATE ('102015', 'MMYYYY') AND TO_DATE ('102015', 'MMYYYY')
GROUP BY MON_INFRAESTRUCTURE_ID,
MON_LAYERPOINT_ID,
MON_CHANNEL_ID,
TO_CHAR(CONSOLIDATION_DATE,'MMYYYY'),
SUBSTR(MONITORED_METHOD,1,INSTR(MONITORED_METHOD,'.')+INSTR(MONITORED_METHOD,'.')),
MONITORED_METHOD_VERSION;
OUTPUT是:
1 2 001 102015 SI.MCA 19
1 2 001 102015 SI.MCA 20
1 2 001 102015 SI.MCA 29
1 2 001 102015 SI.MCA 26
如何用点对第5列进行索引以输出SI.MCA.Random_Name。 ?