我要运行依赖于彼此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