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

 EXEC P_ALTERPK 'PK_T_BAS_PRINTTPLINFOUSAGE', 'T_BAS_PRINTTPLINFOUSAGE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_BAS_PRINTTPLINFOUS_IDX_MUL') CREATE INDEX T_BAS_PRINTTPLINFOUS_IDX_MUL ON T_BAS_PRINTTPLINFOUSAGE ( FUSEORGID ,FDATAID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_BAS_PRINTTPLINFOUS_IDX_DATA') CREATE INDEX T_BAS_PRINTTPLINFOUS_IDX_DATA ON T_BAS_PRINTTPLINFOUSAGE ( FDATAID );



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