面试考题 1.a表 id(主键),name varchar2(30) b表 id2 ,name2 问题:把a表中所有name重复的记录插入b表中。2. a表 aid,aemail b表 bid,bemail aid和bid关联,把b表中的emai更新为a表中的email。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1insert into b select * from a where a.id in(select id,count(name) from a group by id having count(name)>1) update b set bemail=(select aemail from a where a.aid=b.bid) insert into b select * from a where a.name in(select name,count(id) from a group by name having count(id)>1) update b set bemail=(select aemail from a where a.aid=b.bid)where exist(select 1from awhere a.aid=b.bid) ORACLE除法! SQL语句中视图使用CASE WHEN 就不能用DBLINK 来插入远程表了吗???急急急 trigger能批量生成吗 ORA-12154: TNS:无法解析指定的连接标志符 请问如何解决? 编写一个存储过程,要求返回参数至少有一个是结果集 怎么样才能把oracle数据库里面的数据导入到,SQL-SERVER里面呢??? 哪位GGJJDDMM有用RAC做过ORACLE集群? c#中使用多数据库连接操作问题 用一條SQL語句實現行列轉換? ORACLE最大列数能不能设置,如何设置? 关于存储过程返回记录集的两个问题 请教:Oracle程序包调用的问题
where exist(
select 1
from a
where a.aid=b.bid
)