update as_no t
set t.fix_segs = replace
(select fix_segs
from as_no
where fix_segs like
(select c_co_code +
to_number(to_char(change_date, 'YYYY')) + '%'
from gl_company_change
where BEGIN_CHANGE = '更新'))
as_no 表中的fix_segs字段是由c_co_code和年度外加一些其他数据组成的,现在我想将gl_company_change中符合条件的数据替换到fix_segs字段中,请各位高手帮忙给看看应该如何做呢。。
set t.fix_segs = replace
(select fix_segs
from as_no
where fix_segs like
(select c_co_code +
to_number(to_char(change_date, 'YYYY')) + '%'
from gl_company_change
where BEGIN_CHANGE = '更新'))
as_no 表中的fix_segs字段是由c_co_code和年度外加一些其他数据组成的,现在我想将gl_company_change中符合条件的数据替换到fix_segs字段中,请各位高手帮忙给看看应该如何做呢。。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货