hi,
a better way is to make the ID column in that survey table "unique". If you do so, you will not be able to insert any row with that ID number..
If you do so, when you try to insert a row with an existing ID, you will get an error (exception).
As i understood, it will be even better if you make that ID column primary key in your table (then, that column will automatically be unique)
hope it helps
|