简体   繁体   English

像Android SDK的Appcelerator云服务中的查询

[英]like query in Appcelerator cloud service for android sdk

am using appcelerator cloud services for android sdk. 我正在为Android SDK使用Appcelerator Cloud Services。 I've audio files uploaded on the ACS.Now i want to search those audio file with "Like" query which is used in SQL. 我已经将音频文件上传到ACS.Now,现在我想使用在SQL中使用的“类似”查询来搜索这些音频文件。 for example 例如

SELECT * FROM Customers
WHERE Country LIKE '%land%'; 

and the result would be like 结果将是

Ireland
finland
poland

i'v searched ACS documentation but couldn't find anything that like query at all. 我已经搜索了ACS文档,但根本找不到任何类似查询的内容。 any help would be much appreciated. 任何帮助将非常感激。 Thanks :) 谢谢 :)

it can not be done. 这是不可能的。

the best you can do is a regex query OR a full text query. 最好的办法是使用正则表达式查询或全文查询。 With the regex query it will only perform a "starts with" not a contains query... see documentation here 使用正则表达式查询时,它将仅执行“开头为”,而不执行包含查询...请参见此处的文档

http://docs.appcelerator.com/cloud/latest/#!/guide/search_query http://docs.appcelerator.com/cloud/latest/#!/guide/search_query

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM