这个sql能修改成oracle适配的语法吗?

卑鄙徐 卑鄙徐 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<update id="batchUpdateFundNumber" parameterType="list" databaseId="oracle">
    BEGIN
    <foreach collection="list" item="item" index="index">
        update mad_project t
        left join mad_project_aux m on t.mad_id = m.mad_id set
        t.approval_amt=#{item.approvalAmt},
        t.acitem19_code=#{item.acitem19Code},
        m.fund_number=#{item.fundNumber}
        where
        t.agy_code=#{item.agyCode}
        and t.mof_div_code=#{item.mofDivCode}
        and t.mad_code=#{item.madCode}
        and t.pro_status=#{item.proStatus}
        and t.fiscal=#{item.fiscal};
    </foreach>
    END;
</update>

update mad_project t left join mad_project_aux m on t.mad_id = m.mad_id set t.approval_amt=#{item.approvalAmt}, t.acitem19_code=#{item.acitem19Code}, m.fund_number=#{item.fundNumber} where t.agy_code=#{item.agyCode} and t.mof_div_code=#{item.mofDivCode} and t.mad_code=#{item.madCode} and t.pro_status=#{item.proStatus} and t.fiscal=#{item.fiscal};

...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
卑鄙徐
Oracle 17,133 成员 55,258 内容