1

我在下面有一个查询:

case 
   when 1 = (select Loc_ID from tbl_Web_User where Phone = '123456789') 
      then 'Reached Quota' 
      else 'მიღწეული კვოტა' 
end

当我返回格鲁吉亚字符时,它会??????????像这样返回。如何正确显示格鲁吉亚字符串?

4

1 回答 1

1

您需要确保指定您需要Unicode字符串文字 - 您可以通过在字符串前面加上 a 来做到这一点N- 就像这样:

case 
   when 1 = (select Loc_ID from tbl_Web_User where Phone = '123456789') 
      then N'Reached Quota' 
      else N'მიღწეული კვოტა' 
end
于 2017-09-09T09:27:36.070 回答