-- T_FA_BILLFIELDMAP_E表主键
EXEC P_ALTERPK 'PK_T_FA_BILLFIELDMAP_E', 'T_FA_BILLFIELDMAP_E', 'FENTRYID', '1';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_BILLFIELDMAP_E_FID') CREATE INDEX IDX_FA_BILLFIELDMAP_E_FID ON T_FA_BILLFIELDMAP_E ( FID );

-- T_FA_BILLFIELDMAP表主键
EXEC P_ALTERPK 'PK_T_FA_BILLFIELDMAP', 'T_FA_BILLFIELDMAP', 'FID', '1';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_BILLFIELDMAP_NUMBER') CREATE UNIQUE INDEX IDX_FA_BILLFIELDMAP_NUMBER ON T_FA_BILLFIELDMAP ( FNUMBER );

EXEC P_ALTERPK 'PK_T_FA_BILLFIELDMAP_L', 'T_FA_BILLFIELDMAP_L', 'FPKID', '1';

