update collection c set c.biblio_id=(select b.id from biblio b where b.school_id=933 and b.bookrecno=c. bookrecno and rownum=1) where exists
(select 1 from biblio b where b.school_id=933 and b.bookrecno=c. bookrecno) and c.school_id=933 and c.id <=2495991 and biblio_id = 1这里更新条件中的 bookrecno用 number(10) 和 varchar(255)
是不是用number(10)的会更新的更快)