sort tablename in sql table

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default sort tablename in sql table

    hi.. i have several tables where I need to sort the column name in a table;
    asc order.. how can i do that?

    ex: table is abc
    column name: yahoo, msn, google
    I want to sort the column to
    google, msn, yahoo



    TIA.



    sc Guest

  2. Similar Questions and Discussions

    1. Sort Table Feature
      Has anyone else received the following javascript error when attempting to sort a table with DreamWeaver 8? TypeError:...
    2. Sort a repeat region in a table by clicking on the table headers
      Sort a repeat region in a table by clicking on the table headers for ASP some help on this topic pls.. Rgds MeTin
    3. To sort the table per fields
      Hi alll can anyone tell me how i can make links with one recordset (or more) which each link is gonna sort the etails on the table for example my...
    4. Table sort
      Hi I would like sort table. The table is createobject method (open a function and use SAP connection) and the table not use recordset. is it...
    5. Drop table <tablename> failling
      I created a very simple table in db2, the prompt gave a success message. but when I try to do a describe or select or insert or basically anything...
  3. #2

    Default Re: sort tablename in sql table

    If I'm understanding you correctly, you want to sort by the "google" column,
    then the "msn" column and finally the "yahoo" column. Just use an order by
    clause. The default is "asc" (ascending order)

    --- not tested
    SELECT google, msn, yahoo
    FROM abc
    ORDER BY google, msn, yahoo

    mxstu Guest

  4. #3

    Default Re: sort tablename in sql table

    No! I want to sort the column name (fieldnames) in the table. not do a
    sort by in a query..



    "mxstu" <webforumsuser@macromedia.com> wrote in message
    news:dh7644$f9g$1@forums.macromedia.com...
    > If I'm understanding you correctly, you want to sort by the "google"
    > column,
    > then the "msn" column and finally the "yahoo" column. Just use an order
    > by
    > clause. The default is "asc" (ascending order)
    >
    > --- not tested
    > SELECT google, msn, yahoo
    > FROM abc
    > ORDER BY google, msn, yahoo
    >

    sc Guest

  5. #4

    Default Re: sort tablename in sql table

    The query.columnlist is sorted alphabetically if that's what you want.


    Dan Bracuk Guest

  6. #5

    Default Re: sort tablename in sql table

    Okay. That was not quite clear. If you just want to sort the literal names, then the "columnList" variable is probably what you're looking for.
    mxstu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139