sql如下:
update emp a set amnt =
(select (fee)/6 from fee b
where a.empid = b.empid
and begindate >= to_date('200602','yyymmdd')
)
where exists (select 1 from fee where a.empid = b.empid);
emp有40多万条记录,fee表更多,更新了n久都没有更新完.请问各位大侠有什么好的方法,谢谢!
update emp a set amnt =
(select (fee)/6 from fee b
where a.empid = b.empid
and begindate >= to_date('200602','yyymmdd')
)
where exists (select 1 from fee where a.empid = b.empid);
emp有40多万条记录,fee表更多,更新了n久都没有更新完.请问各位大侠有什么好的方法,谢谢!
解决方案 »
- PL/SQL这个工具有代码提示吗?
- PLS-00553: character set name is not recognized 字符集的问题
- 数据库表设计问题,请高人解答,先谢了!
- 怎样把一个表的所有字段名都查出来,并用“,”隔开
- 物化视图多源复制问题!
- LIKE问题
- oracle 9i备份出现的问题
- 怎么不能往表中插入数据?
- 请问大家用的是不是正版ORACLE??在电脑城买的10元9I企业版能用于生产扫描吗??
- 要microsoft odbc for oracle驱动一定要安装oracle单机版吗?
- ORACLE中发邮件用UTL_SMTP,那么如果SMTP服务器要求密码验证怎么办?
- 关于触发器XXXXX的问题 总报错 插入的问题 搞不懂 高手请进!!!!
比如2006-02至2006-03更新记录。