update postgres sequence to max

50

update postgres sequence to max -

SELECT setval('table_id_seq', (SELECT MAX(id) FROM table)+1);

Comments

Submit
0 Comments