/**Begin D:\PDM_UPGRADE\PDM1\SBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BD_SNMUTEX', 'T_BD_SNMUTEX', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_SNMUTEX' AND KSQL_INDNAME = 'IDX_BD_SNMUTEX_CREATETIME') CREATE INDEX IDX_BD_SNMUTEX_CREATETIME ON T_BD_SNMUTEX ( FCREATETIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BD_SNMUTEX' AND KSQL_INDNAME = 'IDX_BD_SNMUTEX') CREATE INDEX IDX_BD_SNMUTEX ON T_BD_SNMUTEX ( FSNNUMBER ,FINVORGID ,FMATERIALID );



/**End D:\PDM_UPGRADE\PDM1\SBD_constraint.sql **/
