我有这个 SQL 查询
SELECT *
FROM ##tempt
WHERE ( minstock <= 0
AND numitems - backorder - cstock >= 1 )
OR ( minstock >= 1
AND numitems - backorder + minstock - cstock >= 1 )
我将如何检查的值是否minstock
为空,如果为空,则将其设置为某个数字?