我试过"SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() LIMIT 100"
了,它返回 81 而不是 100 个帖子,然后我尝试"SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() LIMIT 50"
了,并期望它返回 50 个帖子,因为第一个查询返回 81,但结果只包含 43 个帖子。
想知道 LIMIT 是如何工作的。
此外,这created_time
并不适合我,
"SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() AND created_time > 1262196000 LIMIT 100"
返回 81 个帖子,而"SELECT post_id, actor_id, target_id, message, likes FROM stream WHERE source_id = me() AND created_time > 1262196000"
只返回 5 个。知道吗?