30分求教一个更新语句?在线等. update a set a.b=b.b from table a,table bwhere a.A=b.A and a.C=b.C and a.b='-' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table1 set b=aa.bfrom (select distinct c,b from table1) aawhere table1.c=aa.c and table1.b='-' update table1 set b=aa.bfrom (select distinct c,b from table1 where b is not null) aawhere table1.c=aa.c and table1.b is null update table set b='b'+right(c,1) where b='-' update table set b='b'+right(c,1) where b='-' update TAB set b=A.b from (select a,('b'+substring(c,2,(len(c)-1))) b,c from tab) Awhere tab.a=A.a and tab.b is null这个语句是以字段a为关键字的 update b set b.b=a.b from table,(select * from table where isNull(b,'')='') a join table b on a.c = b.c update table1 set b=aa.bfrom (select distinct c,b from table1 where b is not null) aawhere table1.c=aa.c and table1.b is null试了下这个是可以的,也学习 请教一个权限设置的问题 请教行转列 新手求助-如果发帖位置不对请版主转移。。。 列 转换成行 怎样把两个数据表里的数据合并显示 请问一个关于数据库索引的问题! not in如何改 求一SQL语句,读取总分和平均分的 BCP 导出数据问题 一个使用聚合函数的查询语句 求助,大家帮看这个问题有什么解决方法吗? 帮我看看这个存储过程怎么写
from (select distinct c,b from table1) aa
where table1.c=aa.c and table1.b='-'
from (select distinct c,b from table1 where b is not null) aa
where table1.c=aa.c and table1.b is null
from (select a,('b'+substring(c,2,(len(c)-1))) b,c from tab) A
where tab.a=A.a and tab.b is null
这个语句是以字段a为关键字的
from (select distinct c,b from table1 where b is not null) aa
where table1.c=aa.c and table1.b is null试了下这个是可以的,也学习