相信寫過Oracle Developer Forms的,對於「FRM-40654 Record has been updated by another user. Re-query to see change」的錯誤並不會陌生,這樣的錯誤,會造成欄位無法輸入,更不用說儲存了。

FRM40654p1.jpg

通常這個錯誤有很大的原因,都是 Primary Key 所造成的,簡單來說就是應設成 Primary Key 的欄位,未設成 Primary Key 所造成的,會有這樣的錯誤,可能是因為當我們對 Primary Key 設定錯誤的 Block 進行修改時,資料庫認為所輸入的資料與其他存在的資料的 Primary Key 是相同的

FRM40654p2.jpg

經過將應設成 Primary Key 但未設定的欄位修正後,再進行資料變更,就無此問題了。

FRM40654p3.jpg

相關文章