Was kann ich Zeilen aus zwei Tabellen wechseln?MYSQL - Alternate Zeilen von 2 Tabellen
SELECT table1.a, table1.b, table1.c FROM table1
UNION
SELECT table2.a, table2.b, table2.c FROM table2
Ich möchte dieses Ergebnis:
a | b | c |
first row table1
first row table2
second row table1
second row table2
....
alle Dankten!
Verwenden 'UNION ALL' statt – EvgenyKolyakov
Welche Spalte einen Auftrag liefert, durch die erste oder die zweite, eine Zeile zu nennen? –
Siehe https://meta.stackoverflow.com/questions/333952/why-should-i-provide-an-mcve-for-what-seems-to-me-to-be-very-simple-sql- Abfrage – Strawberry