ID, callDT, callerPersonID, calleePersonID delete from t_calling where ID = #{id,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into t_calling (ID, callDT, callerPersonID, calleePersonID) values (#{id,jdbcType=INTEGER}, #{calldt,jdbcType=TIMESTAMP}, #{callerpersonid,jdbcType=INTEGER}, #{calleepersonid,jdbcType=INTEGER}) SELECT LAST_INSERT_ID() insert into t_calling ID, callDT, callerPersonID, calleePersonID, #{id,jdbcType=INTEGER}, #{calldt,jdbcType=TIMESTAMP}, #{callerpersonid,jdbcType=INTEGER}, #{calleepersonid,jdbcType=INTEGER}, update t_calling callDT = #{calldt,jdbcType=TIMESTAMP}, callerPersonID = #{callerpersonid,jdbcType=INTEGER}, calleePersonID = #{calleepersonid,jdbcType=INTEGER}, where ID = #{id,jdbcType=INTEGER} update t_calling set callDT = #{calldt,jdbcType=TIMESTAMP}, callerPersonID = #{callerpersonid,jdbcType=INTEGER}, calleePersonID = #{calleepersonid,jdbcType=INTEGER} where ID = #{id,jdbcType=INTEGER}