--查询实体上线信息表索引，主键，索引
 EXEC P_ALTERPK 'PK_HBSS_ENTITYRELEASEINFO', 'T_HBSS_ENTITYRELEASEINFO', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_EES_FQUERYENTITYNAME') CREATE INDEX IDX_HBSS_EES_FQUERYENTITYNAME ON T_HBSS_ENTITYRELEASEINFO ( FQUERYENTITYNAME );


 --实体同步方案配置表,查询实体上线信息表索引
 EXEC P_ALTERPK 'PK_HBSS_ENTITYSYNCCONFIG', 'T_HBSS_ENTITYSYNCCONFIG', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_ESC_FENTITY') CREATE INDEX IDX_HBSS_ESC_FENTITY ON T_HBSS_ENTITYSYNCCONFIG ( FENTITY );


 --ES同步方案配置表,查询实体上线信息表索引
 EXEC P_ALTERPK 'PK_HBSS_ENTITYESCONFIG', 'T_HBSS_ENTITYESCONFIG', 'FID', '1';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_EEC_FQUERYENTITYNAME') CREATE INDEX IDX_HBSS_EEC_FQUERYENTITYNAME ON T_HBSS_ENTITYESCONFIG ( FQUERYENTITYNAME );