Viewing 2 posts - 1 through 3 (of 3 total)
ok, I was blind , I thought you write update.
Try this (or play with loop if you want):
create table aaaa( a int, b int)
declare @cond int
set @cond = 1
insert into...
May 26, 2010 at 8:33 am
#1172774
replace Values with select, remove brackets "()"
You don't nedd use from in this query.
May 26, 2010 at 7:20 am
#1172691