求高效update sql 求教update table1set table1.col1=(select table2.col1 from table2 where table1.id=table2.id)这个sql怎么改 才能提高效率 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 --没验证过,你试试update table1set table1.col1=table2.col1where table1.id=table2.id; oracle 没有此种写法,实验失败 update table1set table1.col1=(select table2.col1 from table2 where table1.id=table2.id)这个sql怎么改 才能提高效率如果需要更新,只有这样, update (select t1.coll c1, t2.col1 c2 from table1 t1, table2 t2 where t1.id=t2.id)set c1 = c2hash比loop要占优势,尤其是大规模数据的时候 如何写这样的insert&update触发器 oracle同时读取clob字段和其他字段的sql语句问题 Oracle 10g安装问题 Oracle 执行动态select 语句问题请教 如何判断clob字段为空? 如何将横记录的转换为竖的 如何根据现有的表空间和数据文件和用户自动生成建表空间,数据文件,用户的SQl脚本啊? 调用存储过程的问题 怎样的设计称为好的数据库设计? 求问cursor为什么没有执行循环体的代码? ado 连接unix oracle 数据库 求某张表中某字段每天的最大值,急,在线等
--没验证过,你试试
update table1
set table1.col1=table2.col1
where table1.id=table2.id;
oracle 没有此种写法,实验失败
set table1.col1=(select table2.col1 from table2 where table1.id=table2.id)
这个sql怎么改 才能提高效率如果需要更新,只有这样,
set c1 = c2
hash比loop要占优势,尤其是大规模数据的时候