SELECT a.id+1 AS id FROM idtable a LEFT JOIN idtable b ON (a.id+1)=(b.id) WHERE isNull(b.id) ORDER BY a.id LIMIT 1
So klappt es :P
SELECT a.id+1 AS id FROM idtable a LEFT JOIN idtable b ON (a.id+1)=(b.id) WHERE isNull(b.id) ORDER BY a.id LIMIT 1
So klappt es :P