select id, statistic_title, table_key, statistic_description, statistic_type, statistic_field, statistic_object, sql_key, del_flag, create_by, create_time, update_by, update_time from {DBNAME}.drag_table_statistic
insert into drag_table_statistic
(statistic_title,table_key,statistic_description,statistic_type,statistic_field,statistic_object,sql_key,create_by_id,create_by,create_time,del_flag)
values
(#{item.statisticTitle},#{item.tableKey},#{item.statisticDescription},#{item.statisticType},#{item.statisticField},#{item.statisticObject},
#{item.sqlKey},#{item.createById},#{item.createBy},#{item.createTime},'0')
update drag_table_statistic
statistic_title = #{statisticTitle},
table_key = #{tableKey},
statistic_description = #{statisticDescription},
statistic_type = #{statisticType},
statistic_field = #{statisticField},
statistic_object = #{statisticObject},
sql_key = #{sqlKey},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
update drag_table_statistic set del_flag = '2' where table_key = #{tableKey}
update drag_table_statistic set del_flag = '2' where table_key in
#{tableKey}
update drag_table_statistic set del_flag = '2' where id in
#{id}