自定義項被引用後,在前臺進行修改和刪除時提示數據已被引用。
如何處理?
如何處理?
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字段內容
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。