select MSG_ID, FROM_ID, TO_ID, MSG_TYPE, CONTENT, IS_READ, ID_INDEX, CREATE_TIME from chat_msg insert into chat_msg FROM_ID, TO_ID, IS_READ, MSG_TYPE, CONTENT, ID_INDEX, CREATE_TIME, #{fromId}, #{toId}, #{isRead}, #{msgType}, #{content}, #{idIndex}, #{createTime}, update chat_msg FROM_ID = #{fromId}, TO_ID = #{toId}, IS_READ=#{isRead}, MSG_TYPE = #{msgType}, CONTENT = #{content}, ID_INDEX = #{idIndex}, CREATE_TIME = #{createTime}, where MSG_ID = #{msgId} delete from chat_msg where MSG_ID = #{msgId} delete from chat_msg where MSG_ID in #{msgId}