摘要: https://blog.csdn.net/qq_35958094/article/details/83348480?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase 阅读全文
posted @ 2020-07-21 22:49 那时一个人 阅读(1206) 评论(0) 推荐(0)
摘要: 例如pg_class 存储了所有的表格以及序列名称等信息. 阅读全文
posted @ 2020-07-21 14:32 那时一个人 阅读(340) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_42183854/article/details/83342993 truncate table table_A restart identity 阅读全文
posted @ 2020-07-21 14:21 那时一个人 阅读(1279) 评论(0) 推荐(0)
摘要: create table if not exists auto_increase_id ( id serial, name varchar(10) ); -- alter table auto_increase_id drop function if exists func_trigger_auto 阅读全文
posted @ 2020-07-21 09:51 那时一个人 阅读(365) 评论(0) 推荐(0)
摘要: 返回值为null 则不对当前触发的表进行任何操作,比如对table_A 新增数据触发函数,如果函数返回null, 则数据就不会插入到table_A中 该场景多应用于分区表的新增操作,把数据新增到分区表中 返回值为new 执行了触发器函数后还会再次将新增的数据,插入到当前的表 table_A 该场景多 阅读全文
posted @ 2020-07-21 09:43 那时一个人 阅读(612) 评论(0) 推荐(0)
摘要: 创建父表: create table test_id ( id integer ); 创建触发器函数: 说明:触发器每隔1000笔数据会插入一个新表中,当然id 需要是连续不重复的情况. drop function if exists func_trigger_insert_test_id; cre 阅读全文
posted @ 2020-07-21 00:16 那时一个人 阅读(1149) 评论(0) 推荐(0)