我在部署时遇到了AggregateException,在本地没有出现此异常
SELECT id, dept, Person, Rating
FROM Ihavetable t
WHERE Rating IS NULL
OR Rating = 'M'
OR Rating LIKE '[RT]_%'
AND EXISTS (
SELECT *
FROM Ihavetable
WHERE dept = t.dept
AND ISNULL(Rating, '') NOT LIKE '[RT]' + RIGHT(t.Rating, LEN(t.Rating)-1)
);
这不是null引用异常。 任何想法我应该看哪里。