求一触发器::100分,在线等 create trigger mytrigger on table1(AA)for updateasupdate table1set BB=0where id=@@identity没经过测试,不知道对不对 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的AAA是第几列?CREATE TRIGGER mytri on mytablefor updateASif(COLUMNS_UPDATE() & (2的第几列-1次方) > 0)begindeclare @id intselect @id = youridentitycolumn from insertedupdate mytable set BBB = '0' where youridentitycolumn = @idend youridentitycolumn就是你的标识列(ID?),不一定要是自增量的列 C#中那种倒三角的展开控件是在哪? 在创建数据连接时保存连接字符串的问题 紧急求救,建立连接SYBASE数据库系统DSN问题 C#访问Access的问题 CustomValidator没有执行功能,why? 求教正则表达式的语法!!如何根据需要写正则表达式??? 在C#程序里加入资源文件居然如此艰难,微软有没搞错? 请问有没有北京中软的兄弟啊,我想问一问那里有什么样的待遇 一个打开的OLEDB 的连接会自动关闭吗(本地方式) 如何在程序中实现.net中那样风格的菜单?? 如何在winform上点击某个按钮弹出某个网站的主页? C#数据库操作的问题向大家请教
CREATE TRIGGER mytri on mytable
for update
AS
if(COLUMNS_UPDATE() & (2的第几列-1次方) > 0)
begin
declare @id int
select @id = youridentitycolumn from inserted
update mytable set BBB = '0' where youridentitycolumn = @id
end