建一个表tmpA,只有一个字段:ID,输入连续的数,直到足够大。(可利用Excel表,录入等差数列很方便)。select id from (select max(id) as maxID from your_table) T0, tmpA left join your_table on your_table.id=tmpA.id where  tmpA.id <maxID and your_table.id is null