MyBatis动态插入的实现

mybatis通过定义前缀后缀和分割字符来拼接sql语句,实现动态插入的功能


        insert into news_newstype

        
            
                newsid,
            
            
                newstypeid,
            
        
        
            
                #{newsId},
            
            
                #{newsTypeId},
            
        
    

MyBatis动态插入的实现_第1张图片

你可能感兴趣的:(MyBatis动态插入的实现)