This question has been asked but never clearly answered (as far as I am aware): - I want to give my users a unique temporary username. My idea is to make their username a function of the id column as follows: -
id username
1 user1
2 user2
. . .
967 user967
968 user968
I can do this with an INSERT, a SELECT and an UPDATE, but is there a more efficient way? Can it be done with just an INSERT?