Skip to content

Commit

Permalink
Modify replace into to insert into on update
Browse files Browse the repository at this point in the history
  • Loading branch information
peacewong committed May 10, 2022
1 parent c7946a0 commit cf67275
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
</insert>

<insert id="replaceIntoLabelKeyValue">
REPLACE INTO linkis_cg_manager_label_value_relation (label_value_key,label_value_content,label_id,update_time,create_time) VALUES(#{labelKey}, #{labelStringValue},#{labelId},now(),now())
INSERT INTO linkis_cg_manager_label_value_relation (label_value_key,label_value_content,label_id,update_time,create_time) VALUES(#{labelKey}, #{labelStringValue},#{labelId},now(),now())
ON DUPLICATE KEY UPDATE label_value_content=#{labelStringValue},update_time=now()
</insert>

<select id="getLabel" resultMap="persistenceLabelResultMap">
Expand Down

0 comments on commit cf67275

Please sign in to comment.