Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open(DEST_SRV_PTH) as infile:
- for line in infile:
- data = line.split(",")
- 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])))
- cursor.execute(query, *data)
- cnxn.commit()
Add Comment
Please, Sign In to add comment