在oracle中有一张表,现在要对一个日期下的集合中的每条记录的某几个字段进行更新,
我开始用游标来进行一条一条的计算更新,可是现在老大说如果循环次数太多的话,回浪费很多时间??
请问谁有没有更好的办法???谢谢!!!!!!!!!
----表结构-------------
cjrq date;
hm varchar(20);
dqbh number;
hmlb char(1);
dlsbh number;
total number(10,2);
yfcj number(10,2);
wxcj number(10,2);
bdhf number(10,2);
bdct number(10,2);
bdgj number(10,2);
yhl number(10,2);
hmcj number(10,2);
sbcj number(10,2);
dlsbh_sb number(10,2);
----------------------
更新就是cjrq下的没个号码的total,yfcj,hmcj,sbcj.
我开始用游标来进行一条一条的计算更新,可是现在老大说如果循环次数太多的话,回浪费很多时间??
请问谁有没有更好的办法???谢谢!!!!!!!!!
----表结构-------------
cjrq date;
hm varchar(20);
dqbh number;
hmlb char(1);
dlsbh number;
total number(10,2);
yfcj number(10,2);
wxcj number(10,2);
bdhf number(10,2);
bdct number(10,2);
bdgj number(10,2);
yhl number(10,2);
hmcj number(10,2);
sbcj number(10,2);
dlsbh_sb number(10,2);
----------------------
更新就是cjrq下的没个号码的total,yfcj,hmcj,sbcj.
解决方案 »
- log file sync 短时间(1-2分钟)内 过高,求教!!!
- Oracle监听问题(OracleOraDb10g_home1TNSListener)帮忙解决一下。
- 特急的 语句转化 select 'insert into xh_2 values('''+cast(pk_data as varchar)+''','''+pk_psndoc+''','''+year
- inctype参数取消以后,备份时如何区分全备份,增量备份,差异备份?
- 在Oracle中可以调外部的程序吗?
- SQL中select into语句在oracle中的用法
- help
- 为什么?
- 如何在ORACLE中插入从年到毫秒的数据???
- sql怎么连接字符串
- SOS!!!!高手帮帮忙啊
- oracle 外部表问题
比如说total=100或者total=a*b
如果有规律的话,一条UPDATE语句就行了