我有一个关于 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
这是按预期工作,还是我做错了什么?