UPDATE supermag.smdocuments a SET a.clientindex = '158' WHERE a.doctype = 'WI' AND a.clientindex = '152' AND a.createdat > TO_DATE ('31.12.2011', 'dd.mm.yyyy'); COMMIT ;
UPDATE supermag.smwaybillsin a SET a.supplierdoc = 'РНК0003981', a.supplierinvoice = 'СФК0003981' WHERE a.doctype = 'WI' AND a.ID = 'ПН00002463'; COMMIT ;