EXEC p_AlterPK 'PK_FA_CHANGEBILLMAINENTRY_L', 'T_FA_CHANGEBILLMAINENTRY_L', 'FPKID', '1';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_FA_CHANGEBILLMAINENTRY_L' AND KSQL_INDNAME = 'IDX_FA_MAINENTRY_ENTRYID')
CREATE INDEX IDX_FA_MAINENTRY_ENTRYID ON T_FA_CHANGEBILLMAINENTRY_L (FENTRYID ,FLOCALEID );