统计相关表建立索引sql

create index idx_tj_daily_node_s_date on tj_daily_node(s_date);

create index idx_tj_daily_node_e_date on tj_daily_node(e_date);

create index idx_tj_daily_node_node_id on tj_daily_node(node_id);

create index idx_tj_daily_grp_grp_id on tj_daily_grp(grp_id);

create index idx_tj_daily_grp_s_date on tj_daily_grp(s_date);

create index idx_tj_daily_grp_e_date on tj_daily_grp(e_date);

create index idx_tj_daily_org_org_id on tj_daily_org(org_id);

create index idx_tj_daily_org_s_date on tj_daily_org(s_date);

create index idx_tj_daily_org_e_date on tj_daily_org(e_date);

create index idx_tj_daily_orgdeep_org_id on tj_daily_orgdeep(org_id);

create index idx_tj_daily_orgdeep_s_date on tj_daily_orgdeep(s_date);

create index idx_tj_daily_orgdeep_e_date on tj_daily_orgdeep(e_date);

create index idx_tj_daily_plat_e_date on tj_daily_plat(e_date);

create index idx_tj_daily_plat_s_date on tj_daily_plat(s_date);

create index idx_tj_daily_prj_prj_id on tj_daily_prj(prj_id);

create index idx_tj_daily_prj_s_date on tj_daily_prj(s_date);

create index idx_tj_daily_prj_e_date on tj_daily_prj(e_date);


2016/09/14补充

create index idx_node_visitlog_node_id on node_visitlog(node_id);

create index idx_tj_daily_res_s_date on tj_daily_res(s_date);

create index idx_tj_daily_res_e_date on tj_daily_res(e_date);

create index idx_tj_daily_res_cont_id on tj_daily_res(cont_id);

create index idx_tj_monthly_chn_s_date on tj_monthly_chn(s_date);

create index idx_tj_monthly_chn_e_date on tj_monthly_chn(e_date);

create index idx_tj_monthly_chn_cont_id on tj_monthly_chn(cont_id);

create index idx_tj_monthly_grp_grp_id on tj_monthly_grp(grp_id);

create index idx_tj_monthly_grp_s_date on tj_monthly_grp(s_date);

create index idx_tj_monthly_grp_e_date on tj_monthly_grp(e_date);

create index idx_tj_monthly_node_node_id on tj_monthly_node(node_id);

create index idx_tj_monthly_node_s_date on tj_monthly_node(s_date);

create index idx_tj_monthly_node_e_date on tj_monthly_node(e_date);

create index idx_tj_monthly_org_org_id on tj_monthly_org(org_id);

create index idx_tj_monthly_org_s_date on tj_monthly_org(s_date);

create index idx_tj_monthly_org_e_date on tj_monthly_org(e_date);

create index idx_tj_monthly_orgdeep_ord_id on tj_monthly_orgdeep(org_id);

create index idx_tj_monthly_orgdeep_s_date on tj_monthly_orgdeep(s_date);

create index idx_tj_monthly_orgdeep_e_date on tj_monthly_orgdeep(e_date);

create index idx_tj_monthly_plat_e_date on tj_monthly_plat(e_date);

create index idx_tj_monthly_plat_s_date on tj_monthly_plat(s_date);

create index idx_tj_monthly_prj_prj_id on tj_monthly_prj(prj_id);

create index idx_tj_monthly_prj_s_date on tj_monthly_prj(s_date);

create index idx_tj_monthly_prj_e_date on tj_monthly_prj(e_date);

create index idx_tj_monthly_res_e_cont_id on tj_monthly_res(cont_id);

create index idx_tj_monthly_res_e_s_date on tj_monthly_res(s_date);

create index idx_tj_monthly_res_e_e_date on tj_monthly_res(e_date);

create index idx_tj_weekly_chn_cont_id on tj_weekly_chn(cont_id);

create index idx_tj_weekly_chn_s_date on tj_weekly_chn(s_date);

create index idx_tj_weekly_chn_e_date on tj_weekly_chn(e_date);

create index idx_tj_weekly_grp_grp_id on tj_weekly_grp(grp_id);

create index idx_tj_weekly_grp_s_date on tj_weekly_grp(s_date);

create index idx_tj_weekly_grp_e_date on tj_weekly_grp(e_date);

create index idx_tj_weekly_node_node_id on tj_weekly_node(node_id);

create index idx_tj_weekly_node_s_date on tj_weekly_node(s_date);

create index idx_tj_weekly_node_e_date on tj_weekly_node(e_date);

create index idx_tj_weekly_org_org_id on tj_weekly_org(org_id);

create index idx_tj_weekly_org_s_date on tj_weekly_org(s_date);

create index idx_tj_weekly_org_e_date on tj_weekly_org(e_date);

create index idx_tj_weekly_orgdeep_org_id on tj_weekly_orgdeep(org_id);

create index idx_tj_weekly_orgdeep_s_date on tj_weekly_orgdeep(s_date);

create index idx_tj_weekly_orgdeep_e_date on tj_weekly_orgdeep(e_date);

create index idx_tj_weekly_plat_e_date on tj_weekly_plat(e_date);

create index idx_tj_weekly_plat_s_date on tj_weekly_plat(s_date);

create index idx_tj_weekly_prj_prj_id on tj_weekly_prj(prj_id);

create index idx_tj_weekly_prj_s_date on tj_weekly_prj(s_date);

create index idx_tj_weekly_prj_e_date on tj_weekly_prj(e_date);

create index idx_tj_weekly_res_cont_id on tj_weekly_res(cont_id);

create index idx_tj_weekly_res_s_date on tj_weekly_res(s_date);

create index idx_tj_weekly_res_e_date on tj_weekly_res(e_date);


create index idx_tj_quarterly_chn_cont_id on tj_quarterly_chn(cont_id);

create index idx_tj_quarterly_chn_s_date on tj_quarterly_chn(s_date);

create index idx_tj_quarterly_chn_e_date on tj_quarterly_chn(e_date);

create index idx_tj_quarterly_grp_grp_id on tj_quarterly_grp(grp_id);

create index idx_tj_quarterly_grp_s_date on tj_quarterly_grp(s_date);

create index idx_tj_quarterly_grp_e_date on tj_quarterly_grp(e_date);

create index idx_tj_quarterly_node_node_id on tj_quarterly_node(node_id);

create index idx_tj_quarterly_node_s_date on tj_quarterly_node(s_date);

create index idx_tj_quarterly_node_e_date on tj_quarterly_node(e_date);

create index idx_tj_quarterly_org_org_id on tj_quarterly_org(org_id);

create index idx_tj_quarterly_org_s_date on tj_quarterly_org(s_date);

create index idx_tj_quarterly_org_e_date on tj_quarterly_org(e_date);

create index idx_tj_quarterly_orgdeep_org_id on tj_quarterly_orgdeep(org_id);

create index idx_tj_quarterly_orgdeep_s_date on tj_quarterly_orgdeep(s_date);

create index idx_tj_quarterly_orgdeep_e_date on tj_quarterly_orgdeep(e_date);

create index idx_tj_quarterly_plat_e_date on tj_quarterly_plat(e_date);

create index idx_tj_quarterly_plat_s_date on tj_quarterly_plat(s_date);

create index idx_tj_quarterly_prj_prj_id on tj_quarterly_prj(prj_id);

create index idx_tj_quarterly_prj_s_date on tj_quarterly_prj(s_date);

create index idx_tj_quarterly_prj_e_date on tj_quarterly_prj(e_date);

create index idx_tj_quarterly_res_cont_id on tj_quarterly_res(cont_id);

create index idx_tj_quarterly_res_s_date on tj_quarterly_res(s_date);

create index idx_tj_quarterly_res_e_date on tj_quarterly_res(e_date);

create index idx_tj_yearly_res_cont_id on tj_yearly_res(cont_id);

create index idx_tj_yearly_res_s_date on tj_yearly_res(s_date);

create index idx_tj_yearly_res_e_date on tj_yearly_res(e_date);

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容