我的消息传递架构是这样的
USER
id
name
MESSAGE
id
messagetitle
sender_id
receiver_id
我想显示messagetitle
发件人和收件人姓名
例如 MySQL 查询应该显示:
+--------------+------------+--------------+
| MessageTitle | SenderName | Recievername |
+--------------+------------+--------------+
| Important | Raj | Vijay |
| Solution | Vijay | Raj |
+--------------+------------+--------------+