求助一个sql语句?大家帮忙。 有两张表 A,BA中有年份NF,部门号BMH,工资GZB中有年份NF,部门号BMH,平均工资PJGZ现在要UPDATE A表,根据B表初始化A表,要求A的更新是根据B的年份,部门号一致?大家帮忙! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update aset gz=pjgzfrom a,bwhere a.nf=b.nf and a.bmh=b.bmh?? update a set gz=b.pjgzfrom a , B where a.nf=b.nf and a.bmh=b.bmh update A set A.gz=B.pjgzfrom A,Bwhere A.BMH=B.BMH AND A.NF=B.NF update A set 工资GZ = 平均工资PJGZ from A,B where A.NF=B.NF And A.BMH=B.BMH update A set a.gz=b.pjgz from a,b where a.nf=b.nf and a.bmh=b.bmh 那么有gz工资,福利fl。且都是nf2010年怎么写? update aset gz=pjgz,fl=pjflfrom a,bwhere a.nf=b.nf and a.bmh=b.bmh update A set A.gz=B.pjgz,A.FL=B.FLfrom A,Bwhere A.BMH=B.BMH AND A.NF='2010' update A set a.gz=b.pjgz from a,b where a.nf=b.nf and a.bmh=b.bmh 电机控制仿真 简单SQL 问题 请问如何实现列中的内容select到同行 大家指点迷津:exec sp_executesql 与WHERE从句筛选? 这个问题该怎么解却?求助 两张表查询,有点难度的问题,高手请进 请问哪里有SQL的手册下载? 请问这个怎么用SQL表示 求救数据表的基础操作!!!! 紧急求助!网站被SQL注入后总是出错! 如何修改数据库默认的附加数据库名称????? 查询
update a
set gz=pjgz
from a,b
where a.nf=b.nf and a.bmh=b.bmh
??
from a , B where a.nf=b.nf and a.bmh=b.bmh
update A set A.gz=B.pjgz
from A,B
where A.BMH=B.BMH AND A.NF=B.NF
且都是nf2010年怎么写?
update a
set gz=pjgz,
fl=pjfl
from a,b
where a.nf=b.nf and a.bmh=b.bmh
update A set A.gz=B.pjgz,A.FL=B.FL
from A,B
where A.BMH=B.BMH AND A.NF='2010'