原普通插入语句:  

insert into seriestable_upload values(New.SeriesID,0);

 加条件后:(当不存在该条数据插入)

insert into customerinfo_upload (CustomerID, upload_status)  
          select  New.CustomerID, '0'  
          from dual where not exists   
          (select * from customerinfo_upload where CustomerID=New.CustomerID and          upload_status='0') 

 加:

  使用replace into;

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2021-11-29
相关资源
相似解决方案