EXEC P_ALTERPK 'PK_T_BCM_MODELOLAP_RECORD', 'T_BCM_MODELOLAP_RECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_OLAP_RECORD') CREATE INDEX IDX_BCM_OLAP_RECORD ON T_BCM_MODELOLAP_RECORD ( FMODEL );