简体   繁体   English

如何整理字符串以进行mysql查询

[英]How to collate string for mysql query

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) collation I have on the table. 它通常工作得很好,除非它发现与我在桌上具有的(默认)排序规则不一致的内容。 Is there a way, on Php's side, to adjust the collation? 在PHP方面,有没有办法调整归类?

you can use mysql CONVERT() and CAST() 您可以使用mysql CONVERT()和CAST()

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM