首页 > PostgreSQL > PostgreSQL like无法使用索引

PostgreSQL like无法使用索引

2009年4月2日 发表评论 阅读评论

使用 like 进行查询 如 explain select* from titles where title like ‘h%’  一直显示 Seq Scan。 google+百度后,得知要设定locale为C才能使用like。

使用命令 initdb –local=C -D 集群路径 建立新的集群

分类: PostgreSQL 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.