小编Viv*_*ekN的帖子

用玩笑和假计时器测试递归轮询功能

我创建了一个轮询服务,它递归调用 api,如果满足某些条件,api 成功,则继续轮询。

/**
   * start a timer with the interval specified by the user || default interval
   * we are using setTimeout and not setinterval because a slow back end server might take more time than our interval time and that would lead to
   * a queue of ajax requests with no response at all.
   * -----------------------------------------
   * This function would call the api first time and only on the success response of the api we would poll again …
Run Code Online (Sandbox Code Playgroud)

javascript jestjs

3
推荐指数
1
解决办法
2536
查看次数

在sql查询中替换Not In子句

我有一个临时表#allocations,它有以下字段

DAllocationId   DAllocationName FundCode    DSplitTotal DDisabled   DistAlloc   AAllocationId AAllocationName   ASplitTotal ADisabled
Run Code Online (Sandbox Code Playgroud)

我有另一个表TRAN_POST_PTN,它还包含这些列以及其他列.因此对于asplit id和dsplit id,我们只有相同的列名,即TRAN_POST_PTN中的"发布号码".

我需要做的是在我的分配表中插入来自TRAN_POST_PTN的所有行

posting_number is not in (select DAllocationId from #allocations) 
and posting_number not in (select AAllocationId from #allocations)
Run Code Online (Sandbox Code Playgroud)

我不想在这里使用Not.

有人可以建议我更好的方式来编写这个查询.我尝试使用union编写它,但这不起作用.

sql sql-server

-4
推荐指数
1
解决办法
207
查看次数

标签 统计

javascript ×1

jestjs ×1

sql ×1

sql-server ×1