db_id, name, jdbc_url, user_name, pwd, create_by, update_by, create_time, update_time
delete from mnt_database
where db_id = #{dbId,jdbcType=VARCHAR}
insert into mnt_database (db_id, name, jdbc_url,
user_name, pwd, create_by,
update_by, create_time, update_time
)
values (#{dbId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{jdbcUrl,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
insert into mnt_database
db_id,
name,
jdbc_url,
user_name,
pwd,
create_by,
update_by,
create_time,
update_time,
#{dbId,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR},
#{jdbcUrl,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR},
#{pwd,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
update mnt_database
name = #{name,jdbcType=VARCHAR},
jdbc_url = #{jdbcUrl,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
pwd = #{pwd,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where db_id = #{dbId,jdbcType=VARCHAR}
update mnt_database
set name = #{name,jdbcType=VARCHAR},
jdbc_url = #{jdbcUrl,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
pwd = #{pwd,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where db_id = #{dbId,jdbcType=VARCHAR}