FaceBook query using FQL

落花浮王杯 提交于 2019-11-30 17:44:47

问题


While fetching: https://api.facebook.com/method/fql.query?query=Select+page_id,page_url,name,pic,website,type,location,fan_count,phone+from+page+where+name%20%20=%22SPA%22 i am getting all exact match results with "SPA" But how to get other which will match "sp" as well. Like when we use like operator in fql i am getting problem. Please suggest me with solution


回答1:


here you go:

WHERE strpos(lower(name), 'sp') >= 0



回答2:


Hence there is no LIKE operator in FQL, you will have to use other alternative. I hope this link will suggest you some way:

Does facebook fql contain the sql like operator?



来源:https://stackoverflow.com/questions/4734550/facebook-query-using-fql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!