UPDATE WF_WORKFLOW_NODE_ELE Set user_code=new数据(新某人)
from wf_workflow where user_code=条件(某人)
and WF_WORKFLOW_NODE_ELE.workflow_code=wf_workflow.workflow_code
------解决方案-------------------- 没明白你的意思,不过你可以加个判断 case when 呗
UPDATE WF_WORKFLOW_NODE_ELE
Set user_code = case when col='num1' then initiator else 'num2'
from wf_workflow where WF_WORKFLOW_NODE_ELE.workflow_code=wf_workflow.workflow_code
------解决方案-------------------- UPDATE WF_WORKFLOW_NODE_ELE Set user_code =initiator
from wf_workflow where WF_WORKFLOW_NODE_ELE.workflow_code=wf_workflow.workflow_code
and workflow_node_code='0000000002'
and workflow_nodeele_code='0000000002'
后面的
and workflow_node_code='0000000002'
and workflow_nodeele_code='0000000002'
竟然是user_code的判断???? ------解决方案--------------------