|
|
|
@ -32,7 +32,21 @@ truncate table t_collect_job_sheet restart identity;
|
|
|
|
|
truncate table t_collect_job_sheet_col restart identity;
|
|
|
|
|
truncate table t_collect_mapping restart identity;
|
|
|
|
|
truncate table t_collect_job_bureau restart identity;
|
|
|
|
|
truncate table t_collect_group restart identity;
|
|
|
|
|
truncate table t_collect_group restart identity;
|
|
|
|
|
|
|
|
|
|
-- 删除所有以ds_job开头的表
|
|
|
|
|
DO $$
|
|
|
|
|
DECLARE
|
|
|
|
|
rec record;
|
|
|
|
|
BEGIN
|
|
|
|
|
FOR rec IN
|
|
|
|
|
SELECT table_name
|
|
|
|
|
FROM information_schema.tables
|
|
|
|
|
WHERE table_name LIKE 'ds_job%'
|
|
|
|
|
LOOP
|
|
|
|
|
EXECUTE 'DROP TABLE ' || rec.table_name || ' CASCADE';
|
|
|
|
|
END LOOP;
|
|
|
|
|
END $$;
|
|
|
|
|
|
|
|
|
|
# 处理序列
|
|
|
|
|
-- 查看所有序列
|
|
|
|
|