我要運行依賴於彼此SQL Server的問題存儲過程循環
select a from a (result has multiple rows)
select b from b (result has multiple rows)
的用於在查詢的每個行多個查詢我需要運行這個
select c from c where c.a=a amd c.b=b
insert c into d
有點像:
select a from a (result has multiple rows)
select b from b (result has multiple rows
for a in a
for b in b
select c from c where c.a=a amd c.b=b
insert c,a,b into d
這是否可以做爲存儲過程?
謝謝
表一個具有在結果多行等爲b – Birby 2010-11-08 16:15:28
最終的結果應該是這樣的 表d: C,A,B – Birby 2010-11-08 16:15:55