开发者

Facebook FQL LIKE operator [duplicate]

开发者 https://www.devze.com 2023-02-10 16:30 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: Does facebook fql contain the sql like operator?
This question already has answers here: Closed 11 years ago.

Possible Duplicates:

Does facebook fql contain the sql like operator?

FaceBook query using FQL

Is it possible to use the familiar SQL LIKE operator within Facebook's query language?

I have tried running the query in the FQL test console, but it doesn't work. I'm wondering if I'm missing something or if it is simply not 开发者_运维技巧possible?

SELECT link_id from link WHERE url LIKE '%FRLJTjNC8So%' AND owner = '421235'

Go here to test: http://developers.facebook.com/docs/reference/rest/fql.query/


SELECT link_id from link WHERE strpos(url,'FRLJTjNC8So') >=0 AND owner = '421235'

There is no SQL LIKE in FQL. My solution uses FQL STRPOS instead. This works because it searches for the substring FRLJTjNC8So within the URL field.

The following thread was helpful

Does facebook fql contain the sql like operator?

0

精彩评论

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

关注公众号