select character_id, name, rarity, base_hp_min, base_hp_max, base_atk_min, base_atk_max, base_def_min, base_def_max, base_res_min, base_res_max, base_spd_min, base_spd_max, growth_hp, growth_atk, growth_def, growth_res, growth_spd, move_type, weapon_type, description, avatar_url, created_at from fate_character
insert into fate_character
name,
rarity,
base_hp_min,
base_hp_max,
base_atk_min,
base_atk_max,
base_def_min,
base_def_max,
base_res_min,
base_res_max,
base_spd_min,
base_spd_max,
growth_hp,
growth_atk,
growth_def,
growth_res,
growth_spd,
move_type,
weapon_type,
description,
avatar_url,
created_at,
#{name},
#{rarity},
#{baseHpMin},
#{baseHpMax},
#{baseAtkMin},
#{baseAtkMax},
#{baseDefMin},
#{baseDefMax},
#{baseResMin},
#{baseResMax},
#{baseSpdMin},
#{baseSpdMax},
#{growthHp},
#{growthAtk},
#{growthDef},
#{growthRes},
#{growthSpd},
#{moveType},
#{weaponType},
#{description},
#{avatarUrl},
#{createdAt},
update fate_character
name = #{name},
rarity = #{rarity},
base_hp_min = #{baseHpMin},
base_hp_max = #{baseHpMax},
base_atk_min = #{baseAtkMin},
base_atk_max = #{baseAtkMax},
base_def_min = #{baseDefMin},
base_def_max = #{baseDefMax},
base_res_min = #{baseResMin},
base_res_max = #{baseResMax},
base_spd_min = #{baseSpdMin},
base_spd_max = #{baseSpdMax},
growth_hp = #{growthHp},
growth_atk = #{growthAtk},
growth_def = #{growthDef},
growth_res = #{growthRes},
growth_spd = #{growthSpd},
move_type = #{moveType},
weapon_type = #{weaponType},
description = #{description},
avatar_url = #{avatarUrl},
created_at = #{createdAt},
where character_id = #{characterId}
delete from fate_character where character_id = #{characterId}
delete from fate_character where character_id in
#{characterId}