A
Alex T
I am trying to work with imported data and generate a unique username
to store in a "users" table. I need this to work much like an
interactive username selection on a typical web site. That is, pick a
username, check to see if it's used, if so, modify it (like add a
number to the end), then look again until the user ID is unique.
There would be a table with the list of current user IDs that the
process can check against to see if the imported user ID is unique.
This table would be updated as each new user ID is added.
The real difference between this and the web site example is that the
query has to pick a different user ID if the one it tried is in use
rather than the user doing this.
Has anyone done anything like this and perhaps has some code they can
share?
Thanks!
Alex
to store in a "users" table. I need this to work much like an
interactive username selection on a typical web site. That is, pick a
username, check to see if it's used, if so, modify it (like add a
number to the end), then look again until the user ID is unique.
There would be a table with the list of current user IDs that the
process can check against to see if the imported user ID is unique.
This table would be updated as each new user ID is added.
The real difference between this and the web site example is that the
query has to pick a different user ID if the one it tried is in use
rather than the user doing this.
Has anyone done anything like this and perhaps has some code they can
share?
Thanks!
Alex