I'm trying to get a unique code number which doesn't exists in the "codes" table using a query I found in several other SO threads:
http://ift.tt/2qi1Yku http://ift.tt/2pugzGB
I'm currently trying to use this sqlfiddle:
With lots of issues:
- if no codes are in the table, I get no results at all.
- if there ARE any codes, the results is not unique. I can get a result already in the table...
Any idea on how to make this work?
Thanks!
Aucun commentaire:
Enregistrer un commentaire