尤川豪   ·  5年前
445 貼文  ·  275 留言

既然 order 是 mysql 的保留字,那就用 position 或 sort 吧

資料實在很常需要支援手動排序

欄位命名的話,因為 order 這單字在 mysql 是保留字,該用什麼替代好呢?

https://stackoverflow.com/questions/4716201/alternative-to-column-name-order-in-mysql

position 或 sort 還不錯!

  分享   共 1,838 次點閱
共有 1 則留言
尤川豪   ·  5年前
445 貼文  ·  275 留言

同樣問題,type 的話..

https://dba.stackexchange.com/questions/186498/mysql-similar-name-for-status-or-type-column

  • kind
  • sort
  • variety
  • category

status 的話...

  • condition
  • situation
  • state
 
您的留言
尤川豪
445 貼文  ·  275 留言

Devs.tw 是讓工程師寫筆記、網誌的平台。隨手紀錄、寫作,方便日後搜尋!

歡迎您一起加入寫作與分享的行列!

查看所有文章