我需要正确编写以下SQL脚本语法。在PostgreSQL中,您不能真正将“alter sequence”与“select max(id)”链接起来。那么,以PostgreSQL可以接受的方式编写脚本的正确方法是什么?
以下是脚本,以便您了解我需要什么:
以下是脚本,以便您了解我需要什么:
alter SEQUENCE notification_settings_seq START with (select max(id) from game_user)