xml

    <insert >

      insert into
        student(sname,sage,ssex)
      VALUES
        (s.name,s.sage,s.ssex)

    </insert>

  Mapper:

    public void insert(@Param("s")Student s);

  ServiceImp:

    Student s=new Student("小明","18","男")

    mapper.insert(s);

    System.out.println(s.getId())

 

相关文章:

  • 2022-03-08
  • 2021-07-11
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
猜你喜欢
  • 2021-05-31
  • 2021-07-15
  • 2021-08-17
  • 2022-12-23
  • 2021-08-31
  • 2021-12-20
  • 2021-05-25
相关资源
相似解决方案