[ACCEPTED]-Using a IF Statement within a TSQL UPDATE-tsql
Accepted answer
You are looking for the CASE
expression:
Column2 = CASE WHEN @NewColumnValue IS NULL THEN 'False' ELSE 'True' END
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.