是否允许在FQL中使用两个WHERE子句?

时间:2012-01-11 06:29:42

标签: php facebook-fql where

我试图在一个fql查询中使用两个WHERE子句

SELECT uid, pic, pic_square, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND WHERE strstr('ab',name)

但是收到错误

Parser error: unexpected 'WHERE' at position

2 个答案:

答案 0 :(得分:1)

足以使用AND喜欢:

SELECT .... 
FROM ..... 
WHERE ((Condition A) AND (Condition B))

答案 1 :(得分:0)

结束括号错误,或者您错过了完整的(第二个)子选择条款。

SELECT uid, pic, pic_square, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()    ====>>) AND ====>>WHERE strstr('ab',name)