0
Sagen, ich habe folgendes Ergebnis gesetzt aus einer MySQL-Abfrage:MySQL-Gruppe durch unterschiedliche Kombination von Spalten
col1 | col2 | col3
-----|------|------
1 | 2 |
2 | 1 |
1 | 3 |
3 | 1 |
3 | 1 |
Wie kann ich Gruppe das Ergebnis so eingestellt, dass es wie folgt aussieht:
col1 | col2 | col3
-----|------|------
1 | 2 |
1 | 3 |
..GROUP vON MINDESTENS (col1, col2), GREATEST (col1, col2) – Mihai
ich versuchte GROUP BY (col1, col2) sowie col1 und col2 als DISTINCT-Spalten auswählen, aber keiner von beiden hat funktioniert. –
Mihais Kommentar funktionierte für mich, danke. –