テーブル変数のコピーを作成しようとしています。
DECLARE @lt_Sections TABLE
(
teamId SMALLINT NOT NULL
)
DECLARE @lt_tempSections TABLE
(
teamId SMALLINT NOT NULL
)
-- populate some values in @lt_Sections
-- take a copy of @lt_Sections
SET @lt_tempSections = @lt_Sections
これは私にエラーを与えています:
Msg 137, Level 15, State 2, Line 14
Must declare the scalar variable "@lt_Sections".
私は何を間違えましたか?
ありがとう、マーク