PostgreSQL like无法使用索引
使用 like 进行查询 如 explain select* from titles where title like ‘h%’ 一直显示 Seq Scan。 google+百度后,得知要设定locale为C才能使用like。
使用命令 initdb –local=C -D 集群路径 建立新的集群
分类: PostgreSQL
使用 like 进行查询 如 explain select* from titles where title like ‘h%’ 一直显示 Seq Scan。 google+百度后,得知要设定locale为C才能使用like。
使用命令 initdb –local=C -D 集群路径 建立新的集群
近期评论