DO $$ BEGIN RAISE NOTICE '!!! 请注意 这将删除所有已有的村信息 9s后继续'; PERFORM pg_sleep(9); -- 等待一小段时间 END $$; DELETE FROM "public"."village_distance" WHERE "id" > 0; SELECT setval('village_distance_id_seq', 1); DELETE FROM "public"."village" WHERE "id" > 0; SELECT setval('village_id_seq', 1);