I have the following code in python:
import pyodbc
def insertPrintedPath(self, pth):
con = pyodbc.connect('blabla')
cur = con.cursor()
tm = str(datetime.datetime.now())
cur.execute("insert into dbo.printedPaths \
(pth, tm) values \
(?, ?)", pth, tm)
cur.close()
con.commit()
con.close()
pth
is unique
in MSSQL DB. Could I use something like insert or replace
in SQLite?
which does not work in MSSQL.