这个UPDATE语句如何写? udpate booksset pubid = ( select b.pubidfrom publish bwhere a.isdn = b.isdn) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不好意思,刚才发的有点错误,应该是这样udpate books aset pubid = ( select b.pubidfrom publish bwhere a.isdn = b.isdn) update books aset a.pubid=b.pubidwhere exists (select 1 from publish b where a.isdn=b.isdn); udpate books aset pubid = ( select MAX(b.pubid)from publish bwhere a.isdn = b.isdn)where exists(select 1 from publish b where a.isdn = b.isdn); update books aset a.pubid=(select pubid from publish where isdn=a.isdn)where exists (select 1 from publish b where a.isdn=b.isdn); 请问 分区表 分区条件如何修改?? 急~~sqlldr 的一个问题 请问各位大哥大姐关于高速缓存的问题,高分回报,急!!!! 如何在oracle后台查看应用软件在数据库中的进程,及其对数据库的占用率,或者响应时间…… 怎样可以使表名的长度超过30? 变量的使用 怎样把除数为0的报错关闭,急 access的SQL如何转换为oracle的SQL 在VC++用ADO,求连接远程ORACLE数据库的连接字符串? oracle数据库大数据量优化的问题? ▲oracel的 case.. when 语句在ADO中出错!▲ 请教一个转帐的存储过程
udpate books a
set pubid =
(
select b.pubid
from publish b
where a.isdn = b.isdn
)
set a.pubid=b.pubid
where exists (select 1 from publish b
where a.isdn=b.isdn);
set pubid =
(
select MAX(b.pubid)
from publish b
where a.isdn = b.isdn
)
where exists(select 1 from publish b where a.isdn = b.isdn);
set a.pubid=(select pubid from publish where isdn=a.isdn)
where exists (select 1 from publish b
where a.isdn=b.isdn);