willdevelope
Programmer
How do you create unique identifier such as U82300001 ,U82300002 and U82300003 etc to autogenerate for each row ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Create Table InterestingIdentity(RowId Int Identity(82300001,1), Data VarChar(20), Id As 'U' + Convert(VarChar(8), RowId))
Insert Into InterestingIdentity(Data) Values('Blue')
Insert Into InterestingIdentity(Data) Values('Red')
Select * From InterestingIdentity
Drop Table InterestingIdentity
Create Table InterestingIdentity(Data VarChar(20))
Alter Table InterestingIdentity Add RowID Int Identity(82300001, 1), Id As 'U' + Convert(VarChar(8), RowId)
Insert Into InterestingIdentity(Data) Values('Blue')
Insert Into InterestingIdentity(Data) Values('Red')
Select * From InterestingIdentity
Drop Table InterestingIdentity