今天在查询一个字段时显示一直显示为0,可是表里明明有对应的数值。

select count(1) as vote_your_count from vote_beauty where beauty_person = '\u5c0f\u859b'

搜索了一会发现是转义字符的问题,换成如下即可。

select count(1) as vote_your_count from vote_beauty where beauty_person = '\\u5c0f\\u859b'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案