[2005] INSTEAD OF INSERT : valeur de Colonne IDENTITY
Bonjour,
j'ai un soucis avec une syntaxe que je ne résouds pas.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
declare @t table
(
x int
, y int
)
insert @t
values (1, 1)
insert @t
values (2, 2)
insert @t
values (3, 3)
insert @t
values (4, 4)
insert @t
values (5, 5)
declare @t2 table
(
x int
, y int
)
insert @t2 (x)
output t.x AS x, inserted.x AS y
select x
from @t as t |
Ce qui me génère l'erreur
Citation:
Msg 4104, Level 16, State 1, Line 24
The multi-part identifier "t.x" could not be bound.
Vous pouvez m'aider ?
Merci.