Auto Increment ID in Existing Data in database

1st Step: Create SerialId in Table int
is Identity Yes
Identity Seed:7 digit(0000000)
then save.
2nd Step:
Create another coloum SerialNo varchar
update it with previous SerialId  
run this query 
update StyleSize set serialNo = right(cast(SerialId as nvarchar(10)),6)

Comments

Popular posts from this blog

Provision AWS EC2 Instance and RDS with Terraform, and Deploy Spring Boot App to EC2 Instance via GitHub Action Pipeline

JQuery UI Autocomplete, custom HTML structure for result?

Easy Ui Jquery easyui-textbox change onChange event