Last active
October 1, 2019 19:54
-
-
Save juelvaldivia/0c8449fe1a97f8b04ccec0b27f3d2963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create sequence table_id_table_seq; | |
ALTER TABLE public.table ALTER COLUMN id_table SET DEFAULT nextval('"table_id_table_seq"'::regclass); | |
alter sequence table_id_table_seq | |
owner by table.id_table; | |
// valor por defecto en autoincrementable | |
ALTER SEQUENCE table_id_table_seq RESTART WITH 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment