Faves for this Web page
コレーション。
MySQL での文字列比較だと、データベースの性質上からも 1. のケースが圧倒的に多くて、utf8_unicode_ci とか、適当な collation を使うことで全角半角問題に対応できます。MySQL では strings/ctype-uca.c に書かれている実装になっています。
Currently supports only subset of the full UCA:
- Only Primary level key comparison
- Basic Latin letters contraction is implemented
- Variable weighting is done for Non-ignorable optionFeatures that are not implemented yet:
- No Normalization From D is done
+ No decomposition is done
+ No Thai/Lao orderding is done
- No combining marks processing is done
SQL ではこんな感じです。
SELECT * FROM texts WHERE text_str = 'ア' COLLATE utf8_unicode_ci
Add a Fave for this Web page
- What happens when I press Publish?
- Your Fave for this Web page gets shared with the Faves community. You can access it at any time by selecting "My Faves" from the menu above.
- Why do you ask for my email address?
- We use your email address to create an account, so you can easily find your Fave again at a later time.
Related Content from Around Faves
mysql
-
This is a detailed description about how to set up a Mandriva 2008 Free (Mandriva 2008.0) server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Courier POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of Mandriva 2008, but should apply to the 64-bit version with very little modifications as well.
1 FaverViewed: 11 Times - falko - Jun 17 20081 FaverViewed: 6 Times
- ketchup - 30 days ago1 FaverViewed: 3 Times
