Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print last exceuted query python

try:
    cursor.execute(sql, (arg1, arg2))
    connection.commit()
except:
    print(cursor._last_executed)
    raise
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #exceuted #query #python
ADD COMMENT
Topic
Name
3+1 =