sql

Hi folks!
I need MySQL query that can select the minimal value that is not present in the table :).
Only query, without any languages, scripts, temporary tables etc.,
just SQL query for MySQL.

Example:
sql# select * from some;
+------+
| id |
+------+
| 1 |
| 2 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
+------+
Needed value is 3.

I have solved it...

select min(id)+1  from some where id+1  not in (select id from some);