use metabase go update numbers set nserial = (select max(dmmid)+1 from DynaMaps) where tablename = "DynaMaps" go