update t_tmprpt_firstreplycosttime t
set (t.firstreplytime,
t.dealstaff,
t.firstreplyfailcontent)
= (select a.suggesttime,
a.suggester,
substr(a.remark,instr(a.remark,'¡¿',1)+2)
from t_wf_suggesthis a
where t.serialno = a.serialno
and t.serviceclassid = a.serviceclassid);
Ïë°Ñt_tmprpt_firstreplycosttime ±íÖеÄ3¸ö×Ö¶ÎÊý¾Ý¸üÐÂΪt_wf_suggesthis±íÖеÄsuggesttime, suggester,substr(a.remark,instr(a.remark,'¡¿',1)+2)µÄÖµ¡£Ìõ¼þÊÇt±íµÄsreialnoºÍserviceclassid¶¼Óëa±íÖеÄÏàµÈ¡£
ÎÊÌ⣺µ±ÎÒÖ´ÐÐÕâÌõ¸üÐÂʱºò»á°Ñt±íÖеÄËùÓÐÊý¾Ý¶¼¸üÐÂÁË¡£
½â¾ö£ºoracleÖÐûupdate from ÕâÑùµÄ¸üУ¬¿ÉÒÔ¿¼ÂÇ2ÖÖ½â¾ö°ì·¨¡£
Ò»,
update (select a.suggesttime atime,
b.firstreplytime btime,
a.suggester astaff,
b.dealstaff bstaff,
substr(a.remark,instr(a.remark,'¡¿',1)+2) acontent,
b.firstreplyfailcontent bcontent
from t_wf_suggesthis a, t_tmprpt_firstreplycosttime b)
set btime = atime,
btaff = astaff,
bcontent = acontent;
ÕâÊÇÀàÊÓͼµÄ¸üз½·¨£¬ÕâÒ²ÊÇoracleËù¶ÀÓеġ£
ÏȰѶÔÓ¦µÄÊý¾ÝÈ«²¿³éÈ¡³öÀ´£¬È»ºó¸üбíÒ»Ñù¸üÐÂÊý¾Ý£¬ÕâÀïÐèҪעÒâµÄÊÇ£¬±ØÐë±£Ö¤±íµÄÊý¾ÝΨһÐÔ¡£
Õâ¾ÍÒªÇóa,bÁ½±íµÄ¹ØÁª×Ö¶ÎÉ϶¼ÊǾ߱¸Î¨Ò»ÐԵġ£
¶þ,
update t_tmprpt_firstreplycosttime t
set (t.firstreplytime,
t.dealstaff,
t.firstreplyfailcontent)
= (select a.suggesttime,
a.suggester,
substr(a.remark,instr(a.remark,'¡¿',1)+2)
from t_wf_suggesthis a
where t.serialno = a.serialno
and t.serviceclassid = a.serviceclassid)
where t.serialno in (select b.serialno
from t_wf_suggesthis b
where b.serialno = t.serialno
and b.serviceclassid = t.serviceclassid);
ÕâÖÖ¾ÍÊÇʹÓÃ×Ó²éѯÀ´È·¶¨¸üеÄÊý¾Ý¡£