Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在python中执行一些sql如下
statement = "select * from TEST_TABLE" debug("Statement: %s" % (statement, )) cursor = gblDBConnection.cursor() cursor.execute(statement)
我可以使用我编写的调试函数来调试语句,但也想调试返回的实际值,即在 sql 执行之后。
有没有办法做到这一点?
statement = "select * from TEST_TABLE" cursor = gblDBConnection.cursor() values = cursor.execute(statement) debug(values)
?