Задача: заменить во всех таблицах в полях, связанных с SPR_TSP одно из значений на другое (например -4444 на 75 )
значения из списка inl заменяются соответствующими значениями из списка outl.
transaction()
inl=[4444,55555,111111,333333]
outl=[75,76,77,78]
for x in zzCursor("""select sctable,get
from p_line,p_main
where p_line.scname=p_main.scname and sctable<>'' and
(rel_table='spr_tsp' or get='tsp') """,MyApp.myDataBasePrg).zzRecords(1):
for y in range(len(inl)):
sql="update %s set %s=%s where tsp=%s" % (x['SCTABLE'],x['GET'],outl[y],inl[y])
zzCursor(sql)
commit()