今天在查询一个字段时显示一直显示为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'
今天在查询一个字段时显示一直显示为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'
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。