问题
I know in PostgresQL there is
truncate table restart identity;
but this doesn't work in Redshift. Is there something else to do this in Redshift? Otherwise I see it lot of pain to drop table and recreate and load.
回答1:
Its not possible to reseed identity value in redshift like other sql databases. you have to create new table and move data there.
来源:https://stackoverflow.com/questions/64530857/redshift-truncate-table-and-reset-identity