1

Very new to SQL servers. I have an update trigger and would like to do some playing around / testing. I would like to select * from updated. But I can't think how to output this?

Is there an output I can send this too?

4

1 回答 1

2

尝试使用 PRINT 命令输出:http: //msdn.microsoft.com/en-us/library/ms176047.aspx

DECLARE @VarName <type>;
SELECT @VarName = <column> FROM inserted;
PRINT @VarName;
于 2013-07-16T05:17:35.700 回答