mySQL order?
| From: | Michael Richardson | Date: | Wed, 09 Aug 2000 01:15:05 +0000 |
| Subject: | mySQL order? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10816@lists.php.net to get a copy of this message | ||
Thanks in advance:
In mySQL, if I apply an alias, and then want to group, do I use the alias
name, or the original names?
eg:
SELECT group, (title, size, color) as title, range FROM option1,
data1 WHERE option1.id = data1.id AND range > '1998-02-02' ORDER BY title ??
or ...
SELECT group, (title, size, color) as title, range FROM option1,
data1 WHERE option1.id = data1.id AND range > '1998-02-02' ORDER BY title,
size, color
Respectfully:
RW