I had a query which used to work fine:-
declare @@boo as varchar(100)
declare @@cry as varchar(100)
set @@boo = 'ghost'
set @@cry = 'wail'
Update table1 set column1=@@boo where column2=@@cry
The problem now is that column2 is now in a different table so this will not work. I can join these tables fine with an inner join and the select statement works fine but I cannot update. I believe this is because I cannot update a join.
If this is correct then has anybody any idea of how to do this?
MCSE NT4, 2000, 2003
declare @@boo as varchar(100)
declare @@cry as varchar(100)
set @@boo = 'ghost'
set @@cry = 'wail'
Update table1 set column1=@@boo where column2=@@cry
The problem now is that column2 is now in a different table so this will not work. I can join these tables fine with an inner join and the select statement works fine but I cannot update. I believe this is because I cannot update a join.
If this is correct then has anybody any idea of how to do this?
MCSE NT4, 2000, 2003