今天在查詢一個字段時顯示一直顯示為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刪除。