RE: [PHP] mySQL order?
| From: | Michael Richardson | Date: | Wed, 09 Aug 2000 01:17:58 +0000 |
| Subject: | RE: [PHP] mySQL order? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10817@lists.php.net to get a copy of this message | ||
My apologies, too much rushing:
The correct syntax?
SELECT group, CONCAT_WS(", ", 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, CONCAT_WS(", ", title, size, color) as title, range FROM
option1, data1 WHERE option1.id = data1.id AND range > '1998-02-02' ORDER BY
title, size, color
Thanks again:
RW
-----Original Message-----
From: Michael Richardson [mailto:mrichardson@agex.com]
Sent: Tuesday, August 08, 2000 6:15 PM
To: Php-General (E-mail)
Subject: [PHP] mySQL order?
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net