I'm currently working with a database, in which some primary
keys are varchars. I'm supposed to make an application that creates
an "automatic" primary key for each new register, currently for
instance, if the max(pk) is 100, the new one is 101. My question
is, how to handle strings in a way in which if max(pk) is abx, I
can do abx +1 to get aby - or similar. Any comments?