有人可以帮我找出在 SQL Server 中解码的等效函数吗?
这是我用于 Oracle 的语句,我希望它用于 SQL Server。我试过但无法得到它。
UPDATE [SCHEMA].TLS_FAC_PRC_ONG
SET FPO_RID_OWNER = decode(FPO_RID_OUTSTANDNG,'NONE',FPO_PID_FACILITY,NULL,FPO_PID_FACILITY,FPO_RID_OUTSTANDNG),
FPO_CDE_OWNER = decode(FPO_RID_OUTSTANDNG,'NONE','FAC',NULL,'FAC','OST');