python - Compare result set from 2 sql queries in Python
问题描述
I have 2 same SQL queries from different environments and the result set is stored in 2 variables .
query ='select * from employee'
r1 = cursor1.execute(query)
r2 = cursor2.execute(query)
How to compare r1 and r2 for differences in records of employee table in Python language.
解决方案
推荐阅读
- javascript - 在javascript中执行联合
- python - 更改顶级目录名称后的 ImportError
- javascript - 如何修复支架上的绒毛?
- css - 在 ionic 3 中使用 angular2 swing 模块堆叠卡片
- c++ - 将 Visual C++ 6 控制台应用程序作为 Windows 服务运行
- apache-spark - 数据框加入左行为
- angular - 合并、连接或附加两个 Rxjs Obresvable 的数据
- vba - 创建具有可变列数的表
- android - Android:每 9 次更改 1 个列表视图条目的颜色
- oauth-2.0 - 需要一个 API 设计模式,我可以在其中向后台进程和最终客户端公开相同的 api