id, uid, moments_id, create_time
SELECT LAST_INSERT_ID()
insert into moments_like (uid, moments_id, create_time
)
values (#{uid,jdbcType=BIGINT}, #{momentsId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into moments_like
uid,
moments_id,
create_time,
#{uid,jdbcType=BIGINT},
#{momentsId,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
update moments_like
uid = #{uid,jdbcType=BIGINT},
moments_id = #{momentsId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=INTEGER}
update moments_like
set uid = #{uid,jdbcType=BIGINT},
moments_id = #{momentsId,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
delete from moments_like
where id = #{id,jdbcType=INTEGER}
delete from moments_like where moments_id = #{momentsId}