2017-06-16 33 views

回答

1

只需更新表:

UPDATE YourTable 
SET RollNumber = RollNumber + 1; 
1

第1步:創建序列

CREATE SEQUENCE id START WITH 1 INCREMENT BY 1; 

2步:更新時間:

update tableName set RollNumber = id.nextval; 
相關問題