Query for reorder a table in sql.

Results 1 to 2 of 2
  1. #1
    † Working in Secret † Madelyn is offline
    Grand MasterRank
    Jun 2011 Join Date
    San CristóbalLocation
    658Posts

    config Query for reorder a table in sql.

    Hi All i need a query to re order the lines in DB.. Cuz when i try find a item is hard..
    i have crazy numbers.. -.-
    Example:

    2
    3
    4
    6
    9
    8
    5
    1

    And need
    1
    2
    3
    4
    5
    6
    7
    8
    9

    Anyone? =(


  2. #2
    Member 123we is offline
    MemberRank
    Apr 2012 Join Date
    Any Where :>Location
    87Posts

    Re: Query for reorder a table in sql.

    USE ORDER BY "Row" ASC

    Ex :

    /****** Script for SelectTopNRows command from SSMS ******/
    SELECT TOP 20 [CharName16]
    ,[CurLevel]
    ,[RemainGold]
    FROM [SRO_VT_SHARD].[dbo].[_Char]
    ORDER BY RemainGold DESC



Advertisement