
 EXEC P_ALTERPK 'PK_PMBD_PROJECTWBSTYPE', 'T_PMBD_PROJECTWBSTYPE', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_PROJPE_FNUMBER') CREATE INDEX IDX_PMBD_PROJPE_FNUMBER ON T_PMBD_PROJECTWBSTYPE ( FNUMBER );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_PROJPE_FCREATETIME') CREATE INDEX IDX_PMBD_PROJPE_FCREATETIME ON T_PMBD_PROJECTWBSTYPE ( FCREATETIME );
 
 EXEC P_ALTERPK 'PK_PMBD_PROJECTWBSTYPE_L', 'T_PMBD_PROJECTWBSTYPE_L', 'FPKID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_PROJPEL_FID') CREATE INDEX IDX_PMBD_PROJPEL_FID ON T_PMBD_PROJECTWBSTYPE_L ( FID,FLOCALEID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_PROJPEL_FNAME') CREATE INDEX IDX_PMBD_PROJPEL_FNAME ON T_PMBD_PROJECTWBSTYPE_L ( FNAME );
 

