我有 2 个存储过程,每个 SP 返回 2 个具有相同模式的数据集。
数据就像
Stored procedure 1
Table1
ID Name
1 Apple
2 Sony
3 DELL
Table2
OrderID CustomerName
101 AB Stores
202 Sony World
301 PC House
存储过程 2
Table1
ID Name
21 HP
32 LG
34 ACCER
Table2
OrderID CustomerName
1301 X-PC World
2202 Your PC House
3301 Ajant Stores
现在我想在其他存储过程中合并这样的数据
meargeData1 = SP1.Table1 + SP2.Table1
meargeData2 = SP1.Table2 + SP2.Table2
请建议我热我可以实现它。