1) ALTER SEQUENCE TableName_seq RESTART WITH 1;
Query (1) is for Resting new Sequence Start Value.
2) UPDATE TableName SET ColumnName = nextval('TableName_seq');
2) UPDATE
TableName SET ColumnName = nextval('
TableName
TableName_seq');
TableName_seq
Query (2) will update sequence values.