SELECT ISNULL(MIN(id),0)+1 AS id FROM incontact WHERE id NOT IN (SELECT id-1 FROM incontact) 可以保证序号连续!!!