Question : What is the correct syntax in mssql ?

I have an error of syntax

UPDATE Item_Recebimento_NF SET irec_flagesto= case irec_flagesto when 'S' then 'N' else 'S' end case
Where RecNf_Sequencia = 201285

thanks

Answer : What is the correct syntax in mssql ?

UPDATE Item_Recebimento_NF SET irec_flagesto= case irec_flagesto when 'S' then 'N' else 'S' end
Where RecNf_Sequencia = 201285
Random Solutions  
 
programming4us programming4us