SQL默认值 能否 关联 当前输入的值? create table 表(A int,b as A+1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用insert觸發器實現update 表 set b=a+1 from inserted where 表.a=inserted.a 默認值不能實現 回复人: rockyljt(Rocky) ( ) 信誉:100 2005-01-12 16:42:00 得分: 0 用insert觸發器實現update 表 set b=a+1 from inserted where 表.a=inserted.a 默認值不能實現-----------------------------------------------------------------表中包含了 ntext 字段. inserted表不能使用ntext字段, 怎么办? --表中包含了ntext字段,但你的处理并不涉及到ntext字段,所以update 表 set b=a+1 from inserted where 表.a=inserted.a 没有问题,只是要注意 a 是表中的主键 错误107, 列前缀 ' inserted' 与 查询中所用的表名或别名不匹配. update b set b=a.a+1 from inserted a,表 b where a.a=b.a 退货表跟进货表共用一个表还是分开? 求助~关于sql语句 求助:关于SQL执行速度的问题? 同一个登录出现的问题 如何填充我的image字段 高分求教如何得到一个分组统计的数据,内容见帖,在线等待 求一个SQL句子.用一条SELECT句子得出字段的个数. 无效字符怎样用模糊查询 SQL Server系统索引创建的建议 关于删除Foxpro的表记录的问题。 select查询问题? 【请教】在win2k下装的SQLServer,在win2003下用,只用查询分析器,可以用,但问题是关键字没有变颜色,都是黑色.
update 表 set b=a+1 from inserted where 表.a=inserted.a 默認值不能實現
用insert觸發器實現
update 表 set b=a+1 from inserted where 表.a=inserted.a 默認值不能實現
-----------------------------------------------------------------
表中包含了 ntext 字段. inserted表不能使用ntext字段, 怎么办?
update 表 set b=a+1 from inserted where 表.a=inserted.a
没有问题,只是要注意 a 是表中的主键