我有这个代码:
CREATE TABLE #CategoriesTable
(
CategoryId INT,
HasAssessment BIT,
IsScorm BIT,
IsExternal BIT,
ExternalLink varchar(256),
SingleArtifact BIT,
ScormModuleUrl varchar(256),
WindowHeight varchar(256),
WindowWidth varchar(256),
DateTimeCreated date,
HintText nvarchar(256),
UserId INT
)
select ct.HasAssessment from #CategoriesTable ct
where UserId = @UserId
IF (ct.HasAssessment = 1)
BEGIN
UPDATE #CategoriesTable SET HintText = 'With Assessment'
END
else
BEGIN
UPDATE #CategoriesTable SET HintText = 'With No Assessment'
END
SELECT *
FROM #CategoriesTable
我收到以下错误:无法绑定多部分标识符“ct.HasAssessment”。?