动态sql

新增


    insert into t_tablename
    
        user_id,
    
    
        #{name},
    

修改


    update set t_tablename
    
      username = #{username},
      user_id = #{userId},
      sex = #{sex},
    
    where
        id = #{id}

查询


    bct.company_id as companyId,bct.pic2 as pic2,


    bc.name as cName

like模糊查询

你可能感兴趣的:(sql,java,数据库)