l******9 发帖数: 579 | 1 【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: compare two large tables SQL
发信站: BBS 未名空间站 (Thu May 8 19:33:54 2014, 美东)
I am comparing two tables to make sure they are same row by row and column
by column on SQL server.
SELECT *
FROM t1, t2
WHERE t1.column1 = t2.column1 AND t1.column2 = t2.column2
AND t1.column3 = t2.column3 AND t1.column4 != t2.column4
The tables are vey large, more than 100 million.
I got error:
ERROR [HY000] ERROR: 9434 : Not enough memory for merge-style join
Are there better ways to do this comparison.
thanks ! | t*****w 发帖数: 254 | 2 Please use python to compare the string and summarize the final result.
【在 l******9 的大作中提到】 : 【 以下文字转载自 JobHunting 讨论区 】 : 发信人: light009 (light009), 信区: JobHunting : 标 题: compare two large tables SQL : 发信站: BBS 未名空间站 (Thu May 8 19:33:54 2014, 美东) : I am comparing two tables to make sure they are same row by row and column : by column on SQL server. : SELECT * : FROM t1, t2 : WHERE t1.column1 = t2.column1 AND t1.column2 = t2.column2 : AND t1.column3 = t2.column3 AND t1.column4 != t2.column4
|
|