MySQL Forums
Forum List  »  German

Muss ein ORDER BY column in der SELECT Klausel enthalten sein?
Posted by: Joerg HT
Date: February 09, 2010 03:23AM

Kann ich ein ORDER BY column verwenden wenn ich dieses Feld nicht im Select angegeben habe?

Beispiel:
SELECT col1, col2 FROM t1 ORDER BY col3 DESC;
Oder muss das Feld dann auch angegeben werden, selbst wenn ich es eigentlich nicht brauche?...
SELECT col1, col2, col3 FROM t1 ORDER BY col3 DESC;

Lg, Joerg

Options: ReplyQuote


Subject
Views
Written By
Posted
Muss ein ORDER BY column in der SELECT Klausel enthalten sein?
3487
February 09, 2010 03:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.