--LEN(exp)返回字符串长度

select LEN('中国') 
--返回结果2

--DATALENGTH(exp)返回表达式的字节数 
select DATALENGTH('中国') 
--返回结果4 
 

分组Group by中区分全/半角
将列转为binary再group即可,如:
Select col,convert(binary(100),col)
From table
Group by col,convert(binary(100),col)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-21
  • 2021-05-29
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案