以下是SQL代码:
DECLARE @temp varbinary(16) SELECT @temp = TEXTPTR(b_intro) FROM Bookinfo AS b INNER JOIN Sales AS s ON b.b_code = s.book_code AND sal_tot = (SELECT MAX(sal_tot) FROM Sales) ORDER BY sal_tot DESC READTEXT Bookinfo.b_intro @temp 0 2 GO
错误提示:
向 READ TEXT 函数传递了 NULL textptr (text、ntext 或 image 指针)。
请问,这应该如何解决?