1
我在這裏有問題。如何從SQL Server 2008中的插入表和刪除表中排除一列?我目前使用更新後的觸發器。如何排除sql server 2008中的列
守則如下:
select * into #ins from inserted
select * into #del from deleted
我想排除從2個表
我在這裏有問題。如何從SQL Server 2008中的插入表和刪除表中排除一列?我目前使用更新後的觸發器。如何排除sql server 2008中的列
守則如下:
select * into #ins from inserted
select * into #del from deleted
我想排除從2個表
一些列你應該說明的列名,而不是「*」。
select col1, col2, ... , coln into #ins from inserted
首先將數據從僞表複製到臨時表中有什麼意義? –
沒有'* -except-some-columns'語法 - 你應該總是使用明確的列列表而不是'select *',而且如果你想排除列,明確的列列表是唯一的方法前鋒。 –
在第二個選擇中使用列名稱而不是* –