select max_value FROM iden_autoincr_key where key = #{key} update iden_autoincr_key set max_value = max_value + 1 where key = #{key}