/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BOTP_BILL_RULE_RECORD', 'T_BOTP_BILL_RULE_RECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BOTP_BILL_RULE_RECORD' AND KSQL_INDNAME = 'IDX_BOTP_BR_RECORD_USERID_CO') CREATE INDEX IDX_BOTP_BR_RECORD_USERID_CO ON T_BOTP_BILL_RULE_RECORD ( FUSERID ,FOPTYPE ,FCURBILL );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
