/**Begin D:\workspace\_workspace_\_workspace_doc_\工具\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_CUSDIM', 'T_FPM_CUSDIM', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_CUSDIM1', 'T_FPM_CUSDIM1', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_CUSDIM2', 'T_FPM_CUSDIM2', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNERCANCELTOTAL', 'T_FPM_INNERCANCELTOTAL', 'FENTRYID', '1';

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



/**End D:\workspace\_workspace_\_workspace_doc_\工具\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
