这是代码。结果我想看到我的对话和我朋友的对话。对于对话历史记录功能我该怎么做?
SELECT message_id, thread_id, author_id, body, created_time, viewer_id
FROM message WHERE thread_id IN
(SELECT thread_id, subject, recipients FROM thread WHERE folder_id =0 )
AND author_id = 'xxxxxxxxxxxxxxx' ORDER BY created_time DESC LIMIT 0,25
此代码仅返回我的朋友数据。