insert into mon_check_plan ( plan_group, rule_no, rule_group_no, create_time )
select 'CHECK_PLAN', 'RPT103420230226000001', 'RPT1034', sysdate() from dual
where not exists
(select rule_no from mon_check_plan where plan_group='CHECK_PLAN' and rule_no= 'RPT103420230226000001' and rule_group_no= 'RPT1034' and is_enabled = 0 limit 1)
插入sql前判断是否存在
最新推荐文章于 2024-03-10 09:45:00 发布