/** 创建事件库分录和子分录索引 **/

EXEC p_DropIdx 'IDX_AI_BIZVCHENTRY_FID', 'T_AI_BIZVOUCHERENTRY';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AI_BIZVCHENTRY_FID') CREATE INDEX IDX_AI_BIZVCHENTRY_FID ON T_AI_BIZVOUCHERENTRY ( FID,FSEQ );

EXEC p_DropIdx 'IDX_AI_BIZVOUCHERSUBENTRY_FK', 'T_AI_BIZVOUCHERSUBENTRY';
IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AI_BIZVOUCHERSUBENTRY_FK') CREATE INDEX IDX_AI_BIZVOUCHERSUBENTRY_FK ON T_AI_BIZVOUCHERSUBENTRY ( FENTRYID,FSEQ );


