如何比较表数据和Exec存储的proc数据 [英] How to Compare Table data and Exec stored proc data

查看:94
本文介绍了如何比较表数据和Exec存储的proc数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在sql server中比较表数据和存储过程执行的数据,比较所有行和列的值。请帮我解决这个问题。

解决方案

将sp数据放入一个临时表并使表数据也在一个临时表中现在使用not exists键比较两个表,然后你得到一个更好的解决方案...

Hi,
How to Compare Table data and stored procedure executed data in sql server,compare all rows and columns values.Please help me to solve this problem.

解决方案

Make your sp data into one temp table and make your table data also in one temp table now compare both the two tables using not exists key then you get a better solution...


这篇关于如何比较表数据和Exec存储的proc数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆