0
I am trying to update my table in SQL 2012 where the CategoryNumber values should be correspondant for the below name values but it seems that my syntax is wrong.
Update mytable
SET mytable.CategoryNumber IN ('02','05','10')
where mytable.name IN ('peter','michael','ralf')
You mention your syntax is wrong. You don't indicate the reason you believe that to be the case. – Ramhound – 2015-11-05T17:29:05.820
because I got an error when I tried too. – Scorpion99 – 2015-11-05T17:30:31.003
1That was my very subtle hint that you should update the question to include the error message. – Ramhound – 2015-11-05T17:32:33.267