互联网服务update

update关联两个表修改

update关联两个表修改应该怎么写?
update t1 set a9=(select b9 frm t2 where b1=a1) where a1。。。
参与5

5同行回答

alexycomalexycom项目经理IBM
回复 2# weiruan85     就这样啊显示全部
回复 2# weiruan85


    就这样啊收起
政府机关 · 2012-02-24
浏览701
lmy568lmy568系统测试工程师北京德派克信息技术有限公司
写法没问题。显示全部
写法没问题。收起
互联网服务 · 2012-02-23
浏览682
dmsqdr0813dmsqdr0813CIO中天科技
update t1 set a9=(select b9 from t2 where t1.a1=t2.a2)  where  t1-=.... 这样是错误的,a9=(select b9 from t2 where t1.a1=t2.a2) a9是一个字段,不能和(select b9 from t2 where t1.a1=t2.a2) 这个集合进行赋值操作...显示全部
update t1 set a9=(select b9 from t2 where t1.a1=t2.a2)  where  t1-=....


这样是错误的,a9=(select b9 from t2 where t1.a1=t2.a2)

a9是一个字段,不能和(select b9 from t2 where t1.a1=t2.a2) 这个集合进行赋值操作收起
IT分销/经销 · 2012-02-23
浏览670
zellezelle项目经理HT
这样子写应该可以显示全部
这样子写应该可以收起
IT分销/经销 · 2012-02-23
浏览659
weiruan85weiruan85数据库管理员ibm
update t1 set a9=(select b9 from t2 where t1.a1=t2.a2)  where  t1-=....显示全部
update t1 set a9=(select b9 from t2 where t1.a1=t2.a2)  where  t1-=....收起
政府机关 · 2012-02-23
浏览681

提问者

zxe
软件开发工程师建行

问题状态

  • 发布时间:2012-02-21
  • 关注会员:0 人
  • 问题浏览:4159
  • 最近回答:2012-02-24
  • X社区推广