How to auto increment with character + integer?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Guest UserRank #816 · 2.8K reputationPosted Nov 6, 2014, 1:24 AM EST
Murugesh P85 reputationPosted Nov 19, 2014, 3:25 AM EST
Try This CREATE TABLE TABLE( IDNo int IDENTITY NOT NULL, ID as 'AIR'+Cast(IDNo as Varchar(10)) PERSISTED PRIMARY KEY, )