use array/variable in sql-query

前端 未结 2 1819
忘了有多久
忘了有多久 2021-01-27 00:25

I\'m sure there is a way to do it but I don\'t know it anymore...

I have one big table with all the data.

In the table I have rows with information

2条回答
  •  失恋的感觉
    2021-01-27 00:35

    you could try this: SELECT DISTINCT A.Groupname, B.name FROM tablename A JOIN tablename B ON A.GroupID = B.GroupID

提交回复
热议问题