I know there must be something inbuilt with oracle or other dbs but i can't seem to find it
i have a db each with a primary key 1 -> n i would like to create a new entry with the next available number as key.
I could just SELECT max(id) and then plug it in though im worried about if someones doing the same thing at the same time it could cause problems.
Is there a good command for this? (i'd imagine there would be due to how often this would have to be done)
i have a db each with a primary key 1 -> n i would like to create a new entry with the next available number as key.
I could just SELECT max(id) and then plug it in though im worried about if someones doing the same thing at the same time it could cause problems.
Is there a good command for this? (i'd imagine there would be due to how often this would have to be done)