SQL 批量插入、批量更新

    
    
        insert into TAB_A (ID, CODE, NAME)
        select SEQ_TAB_A.Nextval, t.* from (
        
            (select
            #{item.code},#{item.name}
            from dual)
        
        ) t
    
    
    
        
            update TAB_A
            set CODE = #{item.code,jdbcType=VARCHAR},
            NAME = #{item.name,jdbcType=VARCHAR}
            where ID = #{item.id}
        
    

 

你可能感兴趣的:(SQL 批量插入、批量更新)