insert into ArticleCategory_Customer_Edit_Mapping (Customer_Id,ArticleCategory_Id)
//1 少用
SELECT c.Id as CustomerId,a.Id as CategoryId FROM Customer as c CROSS JOIN ArticleCategory as a where c.Id>=781 and c.Id<=937 and (a.Id in (4,8,36) or a.ParentId in(4,8,36))

//2 多数据用
select c.Id as CustomerId,a.Id as CategoryId from Customer c inner join ArticleCategory a on c.Id>=781 and c.Id<=937 and (a.Id in (4,8,36) or a.ParentId in(4,8,36))

相关文章:

  • 2021-11-03
  • 2022-02-01
猜你喜欢
  • 2021-08-11
  • 2021-05-30
  • 2021-11-29
  • 2021-11-04
  • 2021-11-07
相关资源
相似解决方案