怎样进行大数量的比对? a表上千万,B表30万,b中一个字段和a中是相同(作为条件)现需要将b在a中存在的信息提取出来,放到另外一个表里 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from b where b.相同字段 in (select a.相同字段 from a)查出数据再将数据插入要写入的表中。 create table new_table as select * from a where rownum<0;insert into new_table select * from a join b on a.相同字段=b.相同字段 create table new_table as select b.*(select b.*,a.field as filed_flag from a,b where a.field=b.field)where field_flag is not null create table new_tab asselect b.* from a,b where a.相同字段 = b.相同字段 SQLServer语法转Oracle 关于oracle text 全文检索的一个问题(请赐教) Oracle转到mySQL,中文出现乱码 oracle 序列问题 FormFile上传ORACLE BLOB类型的问题 紧急!如何将多个数据库中的数据同步到一个数据库中 引号问题, SQL语句中如何使用'号 20051129 为什么无法执行DBMS_LOGMNR_D??? 新人求SQL 语句 求一个能将字符串里特殊字符转义为ascii的函数,方便输出结果放在insert语句中 两条update语句如何合并为一条语句?
insert into new_table select * from a join b on a.相同字段=b.相同字段
select b.*
(
select b.*,a.field as filed_flag
from a,b
where a.field=b.field
)
where field_flag is not null
select b.* from a,b where a.相同字段 = b.相同字段