开发者

How to collate string for mysql query

开发者 https://www.devze.com 2023-02-06 23:06 出处:网络
I have a query that filters based on content from a website.It usually works just fine, except for when it finds content that doesn\'t agree with the (default) collati开发者_运维百科on I have on the t

I have a query that filters based on content from a website. It usually works just fine, except for when it finds content that doesn't agree with the (default) collati开发者_运维百科on I have on the table. Is there a way, on Php's side, to adjust the collation?


you can use mysql CONVERT() and CAST()

http://dev.mysql.com/doc/refman/5.0/en/charset-convert.html

0

精彩评论

暂无评论...
验证码 换一张
取 消