Re: ORDER BY
| From: | Chris | Date: | Thu, 19 Oct 2006 00:09:25 +0000 |
| Subject: | Re: ORDER BY | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42577@lists.php.net to get a copy of this message | ||
Ron Piggott (PHP) wrote:
Is it possible to do an ORDER BY column_a column_b ASC ? IE Can you specify two columns to cause the output to be displayed in a specific order? RonYes (a quick search would have told you this too). It's best to specify the order for each one: order by column_a asc, column_b asc; or order by column_a asc, column_b desc; for example. -- Postgresql & php tutorials http://www.designmagick.com/