Home  >  Q&A  >  body text

python - How to select multiple fields in postgresql and only deduplicate one of the fields

select distinct name, age returns columns with different names and ages. If you want to get a result like
lily 23
peter 23, solve it

某草草某草草2705 days ago1087

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-24 11:37:12

    我猜
    select distinct name,age from database.tables where age=23

    reply
    0
  • Cancelreply