/*
--获取正式

declare @EcSql nvarchar(2000)


select @EcSql = ' insert into CuSaleCuId(CuId,OrdCuId,saler) select top 100 a.cuid,a.cuid,' + cast(@saler as varchar(10)) +
' from tn_bas_customer a where not exists(select 1 from CuSaleCuId b where b.saler = @saler and b.cuid = a.cuid )
' + @CuSql + ' order by a.cuid desc ' ;


exec sp_executesql @EcSql,N'@saler int output',@saler output

*/

相关文章:

  • 2022-12-23
  • 2021-08-27
  • 2021-09-20
  • 2021-08-20
  • 2022-12-23
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-10-30
相关资源
相似解决方案