开发者社区 问答 正文

phoenix建索引的索引键的问题

想确认下,include是否需要加主键id是否必要 create index index_global_test on dmp.dmp_index_test (name) include (age,sex,addr);

create index index_global_test on dmp.dmp_index_test (name) include (age,sex,addr,id);

查询条件 select id,age,sex,addr from index_global_test where name='xxx'

展开
收起
potential 2019-08-08 22:49:49 1990 分享 版权
1 条回答
写回答
取消 提交回答
  • 长期从事大数据系统与产品研发。

    不是必须的

    2020-03-20 09:43:24
    赞同 展开评论
问答分类:
问答地址: