Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinoval committed Oct 20, 2019
2 parents d4d2a6e + 338ae34 commit 1190a71
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions updateDB_field.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -- coding: cp1251
from odbcAccess import odbc, expODBC
import sys
import os
indb = odbc(os.path.abspath(
'ЭкспериментальныеДанныеДляОтладки.accdb'))
outdb = odbc(os.path.abspath('db-work2.accdb'))

for exp in indb.getInfo('Эксперимент', ['КодМатериала', 'ТипЭксперимента'],
['659', 't'], ['КодОбразца', 'Диаметр', 'Примечание']):
print(exp)
outdb.putInfo('Эксперимент', ['Диаметр', 'Примечание'],
[exp['Диаметр'], exp['Примечание']],
'КодОбразца', exp['КодОбразца'])

0 comments on commit 1190a71

Please sign in to comment.