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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Case Statement

Author  Topic 

Brittney10
Posting Yak Master

154 Posts

Posted - 2011-01-19 : 11:35:00
Is it possible to do a case statement with....

else TableA.ColumnA

or does it have to be a string value in the else statement?....or can I define a varaible? My case statement is within an update statement.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-19 : 11:37:37
Yes, you can do that, but it's best to post the entire statement.
Go to Top of Page
   

- Advertisement -