WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   MySQL (http://www.wcm.at/forum/showthread.php?t=51218)

The_Beax 27.03.2002 16:55

MySQL
 
Hallo Leute!

Ich habe 2 Tabellen {A,B} beide haben zwei Spalten {id,name}. Wie gebe ich beide Tabellen miteinander sortiert aus?

MfG
Martin

it00x30 27.03.2002 19:20

CREATE TABLE temp
AS SELECT *
FROM a, b



SELECT *
FROM temp
ORDER BY id

-> konnt es noch nicht ausprobieren, müsste aber gehen (hoff ich wenigstens). ohne eine neue tabelle anzulegen wirst du warscheinlich nicht auskommen

The_Beax 27.03.2002 19:32

danke, das habe ich fast befürchtet

MfG
Martin


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag