Chinese question plus N?

Write the sql judgment of SqlServer today (case when a.[sales/sales]='sales out of stock' then '0' when a.[sales/sales out]='sales out of stock' then '1' else a.[sales /pin back] end) aa

 

It turned out that I couldn't judge whether it was life or death, and after consulting an old colleague, I learned that I needed to add N, and I was confused about what N???????

 

as follows

(case when a.[Sales/Return]=N'Sales out of the warehouse' then '0' when a.[Sales/Returns]=N'Sales out of the warehouse' then '1' else a.[Sales/Returns] end) aa

 

Sure enough, I don't understand the world of sqlserver

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326602620&siteId=291194637