运行此查询后,我会收到以下错误
UPDATE stockloan_feed
SET CUSIP =(
SELECT CUSIP FROM stockloan_feed_cusip_matching
WHERE stockloan_feed_cusip_matching.SEDOL = stockloan_feed.SEDOL OR
stockloan_feed_cusip_matching.ISIN = stockloan_feed.ISIN)
WHERE CUSIP IS NULL and date = DATEDIFF(d, 0, GETDATE()-1)
子查询返回超过 1 个值。当子查询跟随 =、!=、<、<=、>、>= 或子查询用作表达式时,这是不允许的。