Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
PBoy
Starting Member
22 Posts |
Posted - 2012-03-13 : 10:08:29
|
Hi All,Is it possible to set the column name on a update/insert statement from a declared value?for example:declare @blinky varchar(50)set @blinky = Datename(dw,Getdate())print @blinkyUPDATE boo_tableSET @blinky = '22222'WHERE column_1 = 'boo'The column names are the days of the week.Any help would be great :)CheersP |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
|
|
|
|