postgres批量删除多表数据的一个存储过程
create or replace procedure del_data_gt_6_months() as $$declare my_tablename record ; tablename_cur cursor for select tablename from pg_tables where tablename like 'dds%';begin for my_tablename in tablename_cur loop 10',my_tablename.table
原创
2021-11-17 10:06:27 ·
808 阅读 ·
1 评论