📜  打印上次执行的查询python代码示例

📅  最后修改于: 2022-03-11 14:45:29.335000             🧑  作者: Mango

代码示例1
try:
    cursor.execute(sql, (arg1, arg2))
    connection.commit()
except:
    print(cursor._last_executed)
    raise