如何快速比较查询结果是否一致
如何快速比较查询结果是否一致 ([email protected]) [tom]> pager md5sum - PAGER set to ‘md5sum -‘ ([email protected]) [tom]> select * from users; 6004a48a825ef527b3f090290ba9f0c0 - 1 row in set (0.00 sec) ([email protected]) [tom]> select * from users; 6004a48a825ef527b3f090290ba9f0c0 - #将指令输出的内容保存在文件中.. ([email protected]) [tom]> pager cat > /tmp/log.txt PAGER set to ‘cat > /tmp/log.txt‘ ([email protected]) [tom]> select now(); 1 row in set (0.00 sec) ([email protected]) [tom]> system cat /tmp/log.txt +---------------------+ | now() | +---------------------+ | 2014-07-23 04:17:17 | +---------------------+ #将指令输出的内容保存在文件中同时输出到屏幕 ([email protected]) [tom]> PAGER cat | tee /tmp/log.txt #将指令输出的内容同时输出到屏幕 ([email protected]) [tom]> PAGER tee
如何快速比较查询结果是否一致_转叶大侠
时间: 2024-10-12 12:03:22