我正在使用python调用一个存储过程,该存储过程创建了一个临时表。
然后我试图从该表中选择,但得到的错误是
Caught an exception while rendering: (1137, "Can't reopen table: 'temporary_name'")
谁能看出我哪里做错了?
my code is
# create a cursor
cur = connection.cursor()
# execute the stored procedure
cur.callproc('nodetree')
# Get results from stored procedure
sql = "SELECT * FROM temporary_name"
cur.execute(sql)
该表不叫temporary_name,我只是把它放进去,例如