FQL SELECT query with IN ,NOT Keyword

前端 未结 2 469
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-22 17:04

I\'m trying to retrieve all my friends expect few people.

I formed the query like this

    SELECT uid,name FROM user WHERE uid NOT IN ($x)
2条回答
  •  时光取名叫无心
    2021-01-22 17:14

    You can use WHERE NOT (columnName IN (things 'not in')

    Like this example :

    SELECT post_id, message
     FROM stream 
     WHERE source_id IN ( SELECT page_id 
                            FROM page 
                           WHERE name='coca-cola'
                        ) 
       AND NOT (message IN ( 'probando cocacola'
                           , 'Stijn '
                           , 'Ha ha ha me crezy hu'
                           , ''
                           )
               )
    LIMIT 50
    

提交回复
热议问题