討論串[VB6 ] 關於自動編號(求解)
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者MOONRAKER (㊣康少校是死到哪裡去了)時間13年前 (2012/12/22 12:13), 編輯資訊
0
0
0
內容預覽:
用兩個表,customers和customers_idpool. - 每次從 customers 刪除紀錄 C 時:. 1)取出 C 的 customer_id. 2)插入此 customer_id 到 customers_idpool. 3)刪除 C. - 每次新增紀錄到 customers 時:
(還有451個字)

推噓0(0推 0噓 10→)留言10則,0人參與, 最新作者LBJALA (木村拓拉)時間13年前 (2012/12/20 17:21), 編輯資訊
0
0
0
內容預覽:
假設我的資料庫Customer表單目前有五筆資料. 我是利用context.Customer.Count來自動編號. 也就是說當我要新增一筆記錄. CustomerID會預設為c006. 但是假設我今天有c001~c005. 刪除了c003 這筆資料. 則用Count自動編號的方法就會出錯(自動編號
首頁
上一頁
1
下一頁
尾頁