SELECT max(id) FROM public.report_data_extract_stdcompareindex; #SELECT * FROM public.report_data_extract_stdcompareindex_id_seq; ALTER SEQUENCE public.report_data_extract_stdcompareindex_id_seq RESTART WITH 《最大id+1》;