What columns can be used in OUTPUT INTO clause?

前端 未结 5 957
孤街浪徒
孤街浪徒 2021-02-05 11:45

I\'m trying to build a mapping table to associate the IDs of new rows in a table with those that they\'re copied from. The OUTPUT INTO clause seems perfect for that, but it does

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 12:30

    I'm running into EXACTLY the same problem as you are, I feel your pain... As far as I've been able to find out there's no way to use the from_table_name prefix with an INSERT statement. I'm sure there's a viable technical reason for this, and I'd love to know exactly what it is.

    Ok, found it, here's a forum post on why it doesn't work: MSDN forums

提交回复
热议问题