Jump to content

[SOLVED] Oracle - Reorder with just a query?


revraz

Recommended Posts

If I have a table like

 

ID  |  Desc    |    Sortorder

1        One              3

4        Two              2

6        Three            1

 

Is there a way I can use a single query to change the Sortorder to 1,2,3 based on my ORDER BY ID without having to write a script?

Link to comment
https://forums.phpfreaks.com/topic/144007-solved-oracle-reorder-with-just-a-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.