select ecb01,ecb17,ecb40 from sl01.ecb_file where ecb01 like '25%' and ecb40 = 'Y'
update ecb_file set ecb40 = 'N' where ecb01 like '25%' and ecb40 = 'Y'
create table ecb_file_bak as select * from sl01.ecb_file as of timestamp sysdate -10/1440 where ecb01 like '25%' and ecb40 = 'Y'
select * from ecb_file_bak
merge into ecb_file p using ecb_file_bak q
on (p.ECB01=q.ecb01 and p.ecb02=q.ecb02 and p.ecb03=q.ecb03 and p.ecb012 = q.ecb012)
when matched then
update set p.ecb40 = q.ecb40
select bma01, ima02, bmb03
from bma_file, ima_file, bmb_file
where bma01 like '20%'
and bma01 = bmb01
and bma01 = ima01
and bmb02 = (select min(bmb02) from bmb_file where bmb01 = bma01) --min最小值
select * from hy01.img_file where img18 = to_date('1999/12/31','YYYY/mm/dd')
select * from sl01.img_file where img18 = to_date('1999/12/31','YYYY/mm/dd')
update sl01.img_file set img18 = to_date('9999/12/31','YYYY/mm/dd') where img18 = to_date('1999/12/31','YYYY/mm/dd')
select gen02 from gen_file where gen02='严芙蓉'
update ecm_file set ecm301='2000' where ecm01 = 'B5111-1501060009' and ecm03='10'
update ecb_file set ecb40 = 'N' where ecb01 like '25%' and ecb40 = 'Y'
create table ecb_file_bak as select * from sl01.ecb_file as of timestamp sysdate -10/1440 where ecb01 like '25%' and ecb40 = 'Y'
select * from ecb_file_bak
merge into ecb_file p using ecb_file_bak q
on (p.ECB01=q.ecb01 and p.ecb02=q.ecb02 and p.ecb03=q.ecb03 and p.ecb012 = q.ecb012)
when matched then
update set p.ecb40 = q.ecb40
drop table ecb_file_bak
select * from ecm_file where ecm53 ='Y'
update ecm_file set ecm53 = 'N' where ecm53 ='Y'
select * from ecm_file where ecm66='Y'
update sfb_file set sfb93='N' where sfb93='Y' and sfb05 like '25%' and sfb071< to_date('2015/01/08','YYYY/mm/dd')
from bma_file, ima_file, bmb_file
where bma01 like '20%'
and bma01 = bmb01
and bma01 = ima01
and bmb02 = (select min(bmb02) from bmb_file where bmb01 = bma01) --min最小值