这是我的简单查询:
Select user_id, body
from Messages where (Messages.author = 'john' and Messages.receipt = 'erick'
UNION ALL (Messages.author = 'erick' and Messages.receipt = 'john');
我只是想结合这两个简单的选择查询并得到类似的东西:
user_id body
------------------
1 hello
2 hi john
2 hello this is erick
1 this is john!
我究竟做错了什么?