tags:

views:

741

answers:

2

Hi all,

I am building a small facebook app. Trying to search for values in an auto compelte manner. Is it possible to use sql's like operator in fql?

+4  A: 

There is no LIKE operator in FQL.

However, you may have luck with the IN operator:

WHERE "Stanford" IN education_history.name

These two pages may be helpful:

Portman
+1  A: 

Another way for you is to use the strpos(message, "content you want") >= 0. I don't know why, but the IN operator does not run for me. Did anyone try it?

vodkhang
+1. If you follow the FQL examples, they actually have some absolutely horrific examples using strpos.
pst