how to find a free slot in mysql?
#1

topic explains it all, i want to select a id not used by a column

say i have

Banid:

1
2
3
5
6
8

what am i looking for? a 4 or a 7, i want it to select either of them, then it will select another one after. then if no slots are free, it will select 9
Reply


Messages In This Thread
how to find a free slot in mysql? - by Donya - 01.04.2011, 21:17

Forum Jump:


Users browsing this thread: 2 Guest(s)