私はこのコードを持っています:
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" could not be bind.?