I am trying to auto increment with numbers and letters. It should look like this:
KH001
KH002
KH003
etc..
I've looked at a couple of articles and other Stack Overflow questions but couldn't manage to understand as SQL is my much weaker side.
I have created a column named string
that had varchar(50)
data type and a fixed value of KH
.
I created a second column named string2
that had int
data type and auto increment by 1 that works.
Then I added the following line to my query:
string + string2 as <column name>
Received an error saying I couldn't convert 'KH' to int.