
EXEC P_ALTERPK 'PK_FMM_PLANCHANGEAPPLY', 'T_FMM_PLANCHANGEAPPLY', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PLANCHANGEAPPLY_FNO') CREATE INDEX IDX_FMM_PLANCHANGEAPPLY_FNO ON T_FMM_PLANCHANGEAPPLY ( FBILLNO );