0
为连接conn提供一个游标变量curr,在从其获取所有结果后“最终”放下一个表格是否安全?类似以下的东西是否可以安全地使用psycopg2在fetchall后面放置一个表格
curr.execute(some_select_query)
try:
results = curr.fetchall()
except:
some_error_handling()
finally:
curr.execute(drop_table_query)
conn.commit()
use_results_array_here
是否所有结果都会被提取到结果数组中?性能是否会因为下降而受到影响?
该表是临时的,没有重试机制,但感谢您的建议。 – a1an