开发者

CouchDB select all where field contains value

开发者 https://www.devze.com 2023-01-18 07:16 出处:网络
Is it possible to select all documents where a field contains a value. i.e is the following 开发者_如何学Csql possible?

Is it possible to select all documents where a field contains a value.

i.e is the following 开发者_如何学Csql possible?

Select * FROM table WHERE field LIKE %substring%


There is no exact equivalent to the SQL-keyword LIKE in CouchDB. Depending on your use case, you may achieve something similar by building an appropriate index.

Take a look at this question: Like-condition in CouchDB

0

精彩评论

暂无评论...
验证码 换一张
取 消