and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, name, gender, birthday, comment, created_at, created_by
delete from demo_student
where id = #{id,jdbcType=VARCHAR}
delete from demo_student
SELECT LAST_INSERT_ID()
insert into demo_student (id, name, gender, birthday,
comment, created_at, created_by
)
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, #{birthday,jdbcType=TIMESTAMP},
#{comment,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=VARCHAR}
)
SELECT LAST_INSERT_ID()
insert into demo_student
id,
name,
gender,
birthday,
comment,
created_at,
created_by,
#{id,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{gender,jdbcType=VARCHAR},
#{birthday,jdbcType=TIMESTAMP},
#{comment,jdbcType=VARCHAR},
#{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=VARCHAR},
update demo_student
id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=VARCHAR},
birthday = #{record.birthday,jdbcType=TIMESTAMP},
comment = #{record.comment,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
created_by = #{record.createdBy,jdbcType=VARCHAR},
update demo_student
set id = #{record.id,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=VARCHAR},
birthday = #{record.birthday,jdbcType=TIMESTAMP},
comment = #{record.comment,jdbcType=VARCHAR},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
created_by = #{record.createdBy,jdbcType=VARCHAR}
update demo_student
name = #{name,jdbcType=VARCHAR},
gender = #{gender,jdbcType=VARCHAR},
birthday = #{birthday,jdbcType=TIMESTAMP},
comment = #{comment,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
update demo_student
set name = #{name,jdbcType=VARCHAR},
gender = #{gender,jdbcType=VARCHAR},
birthday = #{birthday,jdbcType=TIMESTAMP},
comment = #{comment,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}