How to save a particular, mutable “order” into a database

后端 未结 9 919
北恋
北恋 2021-02-05 03:34

Suppose I have some objects, and I want the user to be able to reorder them in any way they wish, say, by dragging them around. So I\'d have

  • Cheese
  • Muffin
9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 04:25

    Yup, in a relational database there is no order, it's one of the fundamental concepts. So there's just no way without a numerical value or something like that.

提交回复
热议问题