insert into tb_student(
stu_no,
name,
idcard,
grade_id,
sex,
phone,
password,
clazz_id
)values(
#{stuNo},
#{name},
#{idcard},
#{gradeId},
#{sex},
#{phone},
'123456',
#{clazzId}
)
delete from tb_student where id = #{id}
update tb_student set
stu_no=#{stuNo},
name=#{name},
idcard=#{idcard},
grade_id=#{gradeId},
sex=#{sex},
phone=#{phone},
password=#{password},
clazz_id=#{clazzId}
where id = #{id}
update tb_student
stu_no = #{stuNo},
name = #{name},
idcard = #{idcard},
grade_id = #{gradeId},
sex = #{sex},
phone = #{phone},
password = #{password},
clazz_id = #{clazzId},
where id = #{id}
and id = #{id}
and stu_no = #{stuNo}
and name like concat('%',#{name},'%')
and idcard = #{idcard}
and grade_id = #{gradeId}
and sex = #{sex}
and phone = #{phone}
and password = #{password}
and clazz_id = #{clazzId}