
 EXEC P_ALTERPK 'PK_PMBD_CALENDAREXPR', 'T_PMBD_CALENDAREXPR', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_CALEPR_FBILLNO') CREATE INDEX IDX_PMBD_CALEPR_FBILLNO ON T_PMBD_CALENDAREXPR ( FBILLNO );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_CALEPR_FCREATETIME') CREATE INDEX IDX_PMBD_CALEPR_FCREATETIME ON T_PMBD_CALENDAREXPR ( FCREATETIME );
 
 EXEC P_ALTERPK 'PK_PMBD_WORKTIMEEXPR', 'T_PMBD_WORKTIMEEXPR', 'FENTRYID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_WORKPR_FID') CREATE INDEX IDX_PMBD_WORKPR_FID ON T_PMBD_WORKTIMEEXPR ( FID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMBD_WORKPR_FSEQ') CREATE INDEX IDX_PMBD_WORKPR_FSEQ ON T_PMBD_WORKTIMEEXPR ( FSEQ );
 




