开发者

SQL Server trigger that rounds values

开发者 https://www.devze.com 2022-12-22 19:25 出处:网络
I need to write a trigger that rounds a value wh开发者_Python百科enever it is inserted/updated into a tableHere is a getting started tutorial on how to use Triggers in SQL Server. Start working on it

I need to write a trigger that rounds a value wh开发者_Python百科enever it is inserted/updated into a table


Here is a getting started tutorial on how to use Triggers in SQL Server. Start working on it and let us know if you have any issues.


DECLARE @tt TABLE (id INT NOT NULL PRIMARY KEY, value NUMERIC(10, 0) NOT NULL)

INSERT
INTO    @tt
VALUES  (1, 3.1415926)

SELECT  *
FROM    @tt

, without any triggers.

0

精彩评论

暂无评论...
验证码 换一张
取 消