 EXEC P_ALTERPK 'PK_T_CAS_RESETINITBALANCE', 'T_CAS_RESETINITBALANCE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_RESET_INITBALANCE') CREATE INDEX IDX_CAS_RESET_INITBALANCE ON T_CAS_RESETINITBALANCE ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_CAS_ACCBALANCEINFO', 'T_CAS_ACCBALANCEINFO', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_ACCBALANCE_INFO') CREATE UNIQUE  CLUSTERED INDEX IDX_CAS_ACCBALANCE_INFO ON T_CAS_ACCBALANCEINFO ( FID );
