Postgres query for DISTINCT for either of 2 columns

前端 未结 0 1495
遇见更好的自我
遇见更好的自我 2021-01-12 07:41

I have a messages table

messages
 - id
 - from_id
 - to_id
 - text
 - inserted_at

I want to retrieve the last message that was either sent or

相关标签:
回答
  • 消灭零回复
提交回复
热议问题