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
Post a Comment