EXEC P_ALTERPK 'PK_T_BCM_LINKAGEMEMBRANGE', 'T_BCM_LINKAGEMEMBRANGE', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LINKAGERANGE_FID') CREATE INDEX IDX_LINKAGERANGE_FID ON T_BCM_LINKAGEMEMBRANGE ( FID );