whateveragain
Programmer
The compiler doesn't like the ' * ' as a multiplication sign. How can I write the following statement in dynamic code?
exec('update ' + @tablename + ' set wkcol = (' + @nweight + ' * ' + @columnname + ') where rootkey = ' + @mmkey)
exec('update ' + @tablename + ' set wkcol = (' + @nweight + ' * ' + @columnname + ') where rootkey = ' + @mmkey)