Skip to content
Advertisement

Using a conditional UPDATE statement in SQL

I would like to have an UPDATE statement like this:

Is this not possible in SQL Server / MySQL? I do not want to use the stored procedures or other things.

Suggest me a suitable way around this problem.

Advertisement

Answer

I think what you want is:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement