我对FQL有疑问:可以在多个列上进行ORDER BY吗?
以下FQL查询有效:
SELECT uid,first_name,last_name
FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = 123)
ORDER BY last_name
但是,这个没有:
SELECT uid,first_name,last_name
FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = 123)
ORDER BY last_name, first_name
它返回:
"error": {
"message": "(#601) Parser error: unexpected ',' at position 122.",
"type": "OAuthException",
"code": 601
这是按预期工作,还是我做错了什么?
答案 0 :(得分:0)
这是不可能的。我最近提交了一个文档错误,解释了FQL ORDER BY
只能包含一列。所以它确实按预期工作。