简体   繁体   English

使用like运算符搜索Yahoo API geo.places

[英]Search Yahoo API geo.places with like operator

I want to use the Yahoo API with the geo.places table. 我想将Yahoo API与geo.places表一起使用。 It really works great with single queries, but I want to list all city names which names BEGIN with the query text. 它确实可以很好地用于单个查询,但是我想列出所有城市名称,其中城市名称以查询文本开头。

This is my query URL right now: 这是我现在的查询网址:

http://query.yahooapis.com/v1/public/yql?q=select * from geo.places where text = 'dallas'

And this is what I want: 这就是我想要的:

http://query.yahooapis.com/v1/public/yql?q=select * from geo.places where text LIKE 'dallas%'

Is it possible? 可能吗? If yes, how exactly? 如果是的话,究竟如何?

I can't find any useful information in the docs about this type of query regarding the geo.places table :( 我在文档中找不到有关geo.places表的此类查询的任何有用信息:(

Thank you very much! 非常感谢你!

我能够执行似乎适合您所要查找的请求:

http://query.yahooapis.com/v1/public/yql?q=select * from geo.places where text ='dallas*'

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

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