database - How to name the column that contains integer number for sorting? -


i don't know how name column because english bad. now, name "sorting", correct?

| id | name | sorting | ----------------------- | 1  | foo  |    0    |  | 2  | bar  |    1    | 

sorting fine.

you have:

  • ordering;
  • order;
  • ranking;
  • sort_order;
  • sorting_order.

as pointed out in comments, order should not used "as reserved keyword , require use of quoted identifier (or referred "delimited" identifier)"


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -