/**Begin C:\anzhuang\PDM_UPGRADE\PDM1\TPO_constraint.sql **/
 EXEC P_ALTERPK 'PK_TPO_QHBBXM', 'T_TPO_QHBBXM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_QHBBXM_NUMBER') CREATE INDEX IDX_QHBBXM_NUMBER ON T_TPO_QHBBXM ( FNUMBER );


 EXEC P_ALTERPK 'PK_TPO_QHBBXM_L', 'T_TPO_QHBBXM_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_TPO_QHBBXM_L_0') CREATE INDEX IDX_TPO_QHBBXM_L_0 ON T_TPO_QHBBXM_L ( FID ,FLOCALEID );



/**End C:\anzhuang\PDM_UPGRADE\PDM1\TPO_constraint.sql **/
