我使用Python來調用它創建了一個臨時表的存儲過程MySQL錯誤 - 「不能重新打開表:「temporary_name」
然後我試圖從該表中選擇,但我得到錯誤
Caught an exception while rendering: (1137, "Can't reopen table: 'temporary_name'")
任何人都可以看到我錯了
我的代碼是
# 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我只是把它放在例如
請給我們程序代碼。 – CappY