修改被引用的自定義項

自定義項被引用後,在前臺進行修改和刪除時提示數據已被引用。
如何處理?
 
select * from bd_defquote where fieldname='vuserdef14' for update   查詢自定義項引用表(bd_defquote)
select * from bd_defdef for update 查詢定義自定義項
select b.vuserdef14, b.* from ic_general_b b where b.vuserdef14 is not null or b.vuserdef14 =''  查詢自定義項14在出庫單表體中的引用
update ic_general_b set vuserdef14 =null where vuserdef14 is not null or vuserdef14 =''  置空出庫單表體中vuserdef14字段內容
清除緩存。ok。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章