Re: help with mySQL and ORDER BY

From: Jochen Daum (jochen.daum_at_cans.co.nz)
Date: 02/22/04


Date: Mon, 23 Feb 2004 10:19:25 +1300

Hi !

On Sun, 22 Feb 2004 21:19:20 GMT, "LRW" <druid@NOSPAHMcelticbear.com>
wrote:

>I have a table in a mySQL database that has 56 fields: 01, 02, 03, 04, etc
>up to 56.
>Each field has only 1 record in it. They get changed, updated, constantly,
>but always remaining one record.
>
>Is there a way to do a SELECT * on the table, and then order them in ASC or
>DESC by the fields as opposed to the records in a field? (They're all
>numeric fields.)
>
>Did that make sense?
>
I understand what you want, but a database doesn't suppport that. You
have to use 56 records, which is a better data model anyway.

Jochen

-- 
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/


Relevant Pages

  • Re: PHP / MySQL Threaded Discussion: One Query
    ... one self referencing query for a whole tree ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: Help with US Holidays
    ... >Grandparents Day seems to be giving me some trouble. ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: Deleting a Record.
    ... >program...why isn't this deleting the row i want? ... Jochen Daum - CANS Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ...
    (comp.lang.php)
  • Re: Chart
    ... this is not exactly what I am searching for. ... Jochen Daum - CANS Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ... database editing interfaces. ...
    (comp.lang.php)
  • Re: Access fields in a from subquery
    ... Jochen Daum - Cabletalk Group Ltd. ... PHP DB Edit Toolkit -- PHP scripts for building ...
    (microsoft.public.sqlserver.programming)