![](https://avatars.plurk.com/3572775-medium4.gif)
費拉諾蘭大公
為什麼要自己用程式維護一個其實用auto_increment就可以做好的功能...而且沒有lock table...這樣不保證atomic吧?
![](https://avatars.plurk.com/19994-medium34.gif)
朕先去偉大的航道探險了
這一切都是迷阿...XD
![](https://avatars.plurk.com/3335511-medium2.gif)
TonyQ (人微言輕)
有時候只是想自己作作看 XD
![](https://avatars.plurk.com/3335511-medium2.gif)
TonyQ (人微言輕)
曾經聽過前公司的設計者的理由,是說自己作index 比較不會被人家用流水號爬資料
![:-P](https://statics.plurk.com/2d5e21929e752498e36d74096b1965e1.gif)
![](https://avatars.plurk.com/3572775-medium4.gif)
費拉諾蘭大公
不知道有沒有資料庫可以用pattern產生sequence...
![](https://avatars.plurk.com/4782957-medium2.gif)
Ricky是我
postgres? 有sequence的資料型態可以用,保證不會有兩個人取得相同的id值。
![](https://avatars.plurk.com/3572775-medium4.gif)
費拉諾蘭大公
mysql...
![](https://avatars.plurk.com/3572775-medium4.gif)
費拉諾蘭大公
oracle也有sequence...
![](https://avatars.plurk.com/3572775-medium4.gif)
費拉諾蘭大公
我只是一時好奇啦
![:-P](https://statics.plurk.com/2d5e21929e752498e36d74096b1965e1.gif)
![](https://avatars.plurk.com/3267795-medium2.gif)
sleepnova
uuid