What's the best way to store sort order in SQL?
Posted
by Duracell
on Server Fault
See other posts from Server Fault
or by Duracell
Published on 2010-05-13T01:38:52Z
Indexed on
2010/05/13
1:44 UTC
Read the original article
Hit count: 370
The guys at the top want sort order to be customizable in our app. So I have a table that effectively defines the data type. What is the best way to store our sort order. If I just created a new column called 'Order' or something, every time I updated the order of one row I imagine I would have to update the order of every row to ensure posterity. Is there a better way to do it?
© Server Fault or respective owner