Sorting results

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • silveira neto

    Sorting results

    I hava a table with a primary key cod_topico and I'd sort my results.
    I do this, ok?
    $query='SELECT * from topico order by cod_topico asc' ;
    But I would not sorting asc, How I sort a non-asc form? What is the oposite of asc?



  • Tim Van Wassenhove

    #2
    Re: Sorting results

    On 2004-01-25, silveira neto <otenarievlis@y ahoo.com.br> wrote:[color=blue]
    > I hava a table with a primary key cod_topico and I'd sort my results.
    > I do this, ok?
    > $query='SELECT * from topico order by cod_topico asc' ;
    > But I would not sorting asc, How I sort a non-asc form? What is the oposite of asc?[/color]

    It in the mysql manual. opposite of asc(ending) is desc(ending)

    --

    Comment

    Working...