Guest User

Untitled

a guest
Jan 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. with open(DEST_SRV_PTH) as infile:
  2. for line in infile:
  3. data = line.split(",")
  4. query = ('insert into iru_temp_abd (sr_num,msisdn,notes) values (?%s,?%s,?%s)' % (str(fields[2:3]),str(fields[11:12]),str(fields[14:15])))
  5. cursor.execute(query, *data)
  6. cnxn.commit()
Add Comment
Please, Sign In to add comment