数据库原始数据:
执行命令:
insert into camas_monitor_rule_asset(ipid,port,name,five_tuple_id,rule_id,accuracy,update_time)
(SELECT ipid,port,name,five_tuple_id,5,accuracy,NOW() FROM `camas_monitor_rule_asset` where rule_id = 3778 and deleted = 0)
结果:
insert into camas_monitor_rule_asset(ipid,port,name,five_tuple_id,rule_id,accuracy,update_time)
(SELECT ipid,port,name,five_tuple_id,5,accuracy,NOW() FROM `camas_monitor_rule_asset` where rule_id = 3778 and deleted = 0)