开发者社区> 问答> 正文

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 1973 0
1 条回答
写回答
取消 提交回答
  • 长期从事大数据系统与产品研发。

    不是必须的

    2020-03-20 09:43:24
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
RowKey与索引设计:技巧与案例分析 立即下载
Phoenix 全局索引原理与实践 立即下载
Phoenix 基本介绍及二级索引 立即下载

相关实验场景

更多