一个字段的值能否通过其他表的某些字段通过一定的计算得到?

kops 2003-04-03 11:02:14
应该怎么做?
...全文
83 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
shanzi_21 2003-04-03
  • 打赏
  • 举报
回复
update table1 set table1.a = table2.b+table3.c from table2 full join table3 on table2.id=table3.id where 条件
jimmyxing 2003-04-03
  • 打赏
  • 举报
回复
同样,加上表的名称在字段前不可以吗?
ben988211 2003-04-03
  • 打赏
  • 举报
回复
update table1 set table1.a = table2.b+table2.c from table2 where 条件
kops 2003-04-03
  • 打赏
  • 举报
回复
我希望的是a,b与c是不在同一个表时的情况。
pengdali 2003-04-03
  • 打赏
  • 举报
回复
create table 名(a int,b int, c as a+b)

22,206

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧