LINUX.ORG.RU

История изменений

Исправление sjinks, (текущая версия) :

SELECT t1.id+1 FROM tbl AS t1 LEFT JOIN tbl AS t2 ON t1.id+1 = t2.id WHERE t2.id IS NULL ORDER BY t1.id

?

Исходная версия sjinks, :

SELECT t1.id+1 FROM tbl AS t1 LEFT JOIN tbl AS t2 ON t1.id+1 = t2.id WHERE t2.id IS NULL

?