{"id":16406,"date":"2017-04-20T13:00:08","date_gmt":"2017-04-20T04:00:08","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=16406"},"modified":"2017-04-20T13:08:52","modified_gmt":"2017-04-20T04:08:52","slug":"%e5%af%bf%e5%8f%b8%e3%81%a8%e3%83%93%e3%83%bc%e3%83%ab%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e8%a9%b1%e3%81%97%e5%90%88%e3%81%84%e3%82%92%e3%81%97%e3%81%a6%e3%81%8d%e3%81%be%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2017\/04\/16406\/","title":{"rendered":"\u5bff\u53f8\u3068\u30d3\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u3092\u3057\u3066\u304d\u307e\u3057\u305f"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u308f\u3002\u305b\u3058\u307e\u3067\u3059\u3002<br \/>\n\u3055\u3044\u304d\u3093\u306e kernel \u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u305f\u3089\u3001\u4fc4\u306b Chromebook \u3078\u306e\u8208\u5473\u304c\u6e67\u3044\u3066\u304d\u305f\u306e\u3067\u3001\u9045\u307e\u304d\u306a\u304c\u3089 C302CA \u30dd\u30c1\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u308f\u305f\u3057\u306b\u3068\u3063\u3066\u4eba\u751f\u521d Core M \u3068\u3044\u3046\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u65e9\u304f\u5c4a\u304b\u306a\u3044\u304b\u306a\u3068\u5fc3\u5f85\u3061\u306b\u3057\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u3054\u308d\u3067\u3059\u3002<\/p>\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>MySQL5.7\u4ee5\u524d\u3067\u304a\u305d\u3089\u304f\u6700\u3082\u6709\u540d\u306a\u554f\u984c\u306e\u4e00\u3064\u306b\u3001<a href=\"https:\/\/bugs.mysql.com\/bug.php?id=76553\">Sushi-Beer issue of MySQL with utf8mb4<\/a> \u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5fd9\u3057\u3044\u4eba\u306e\u305f\u3081\u306b\u4e09\u884c\u3067\u307e\u3068\u3081\u307e\u3059\u3068<\/p>\n<ul>\n<li>MySQL \u306f character-set \u306b utf8mb4 \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5bff\u53f8\u3084\u30d3\u30fc\u30eb\u306a\u3069\u306e\u7d75\u6587\u5b57\u3092\u6271\u3048\u308b\u3002<\/li>\n<li>\u305f\u3060\u3001Collation\uff08\u7167\u5408\u9806\u5e8f\uff09 \u304c utf8mb4_general_ci \u3084 utf8mb4_unicode_ci \u3060\u3068\u3001\u7d75\u6587\u5b57\u3092\u533a\u5225\u3067\u304d\u306a\u3044\uff08\u5bff\u53f8\u3068\u30d3\u30fc\u30eb\u306e\u7d75\u6587\u5b57\u3092\u533a\u5225\u3067\u304d\u306a\u3044\uff09\u3002<\/li>\n<li>utf8mb4_bin \u3084 utf8mb4_unicode_520_ci \u3060\u3068\u5bff\u53f8\u3068\u30d3\u30fc\u30eb\u306e\u7d75\u6587\u5b57\u3092\u533a\u5225\u3067\u304d\u308b\u304c\u3001 utf8mb4_unicode_520_ci \u3060\u3068\u3001 \"\u30cf\u30cf\" \u3068 \"\u30d1\u30d1\" \u304c\u533a\u5225\u3067\u304d\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3064\u3044\u3066\u3001 MySQL8.0 \u3067\u306f UTF8 \u306e\u30b5\u30dd\u30fc\u30c8\u3092\u6539\u5584\u3059\u308b\u8a08\u753b\u304c\u3042\u308b\u3068 <a href=\"http:\/\/mysqlserverteam.com\/sushi-beer-an-introduction-of-utf8-support-in-mysql-8-0\/\">Sushi = Beer ?! An introduction of UTF8 support in MySQL 8.0<\/a> \u3067\u30a2\u30ca\u30a6\u30f3\u30b9\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u5148\u65e5\u3054\u7e01\u304c\u3042\u308a\u307e\u3057\u3066\u3001\u3053\u306e\u30a2\u30ca\u30a6\u30f3\u30b9\u3092\u3055\u308c\u305f Manyi Lu \u3055\u3093\u3068\u304a\u8a71\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u3068\u304d\u306b\u304a\u8a71\u3057\u305f\u3053\u3068\u306a\u3069\u306b\u3064\u3044\u3066\u3001\u304b\u308b\u304f\u89e6\u308c\u3055\u305b\u3066\u3044\u305f\u3060\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>MySQL 8.0 \u3067\u306e UTF-8 \u30b5\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066<\/h2>\n<p>MySQL8.0.1 \u304b\u3089 utf8mb4_ja_0900_as_cs \u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<a href=\"https:\/\/yoku0825.blogspot.jp\/2017\/04\/mysql-801utf8mb4ja0900ascs.html\">yoku0825\u3055\u3093\u306e\u307e\u3068\u3081<\/a>\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3059\u304c\u3001\u88dc\u8db3\u3057\u307e\u3059\u3068\u3001utf8mb4_ja_0900_as_cs \u306f<\/p>\n<ul>\n<li>\u3072\u3089\u304c\u306a\u30fb\u30ab\u30bf\u30ab\u30ca\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u3067\u306f\u306a\u3044\uff08\u4f8b\uff1a\u300c\u30a2\u300d\u3068\u300c\u3042\u300d\u306f\u30de\u30c3\u30c1\u3059\u308b\uff09<\/li>\n<li>\u62d7\u97f3\u306f\u533a\u5225\u3067\u304d\u308b\uff08\u4f8b\uff1a\u300c\u3073\u3087\u3046\u3044\u3093\u300d\u3068\u300c\u3073\u3088\u3046\u3044\u3093\u300d\u306f\u30de\u30c3\u30c1\u3057\u306a\u3044\u3002\u533a\u5225\u3055\u308c\u308b\uff09<\/li>\n<li>\u6fc1\u70b9\u3068\u534a\u6fc1\u70b9\u306f\u533a\u5225\u3067\u304d\u308b\uff08\u4f8b\uff1a\u300c\u30cf\u30cf\u300d\u3068\u300c\u30d1\u30d1\u300d\u306f\u30de\u30c3\u30c1\u3057\u306a\u3044\u3002\u533a\u5225\u3055\u308c\u308b\uff09<\/li>\n<li>\u534a\u89d2\u5168\u89d2\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u3067\u306f\u306a\u3044\uff08\u4f8b\uff1a\u300c\u306f\u306f\u300d\u3068\u300c\uff8a\uff8a\u300d\u306f\u30de\u30c3\u30c1\u3059\u308b\uff09<\/li>\n<li>\u7d75\u6587\u5b57\u306f\u533a\u5225\u3067\u304d\u308b\uff08\u4f8b\uff1a\u5bff\u53f8\u306e\u7d75\u6587\u5b57\u3068\u30d3\u30fc\u30eb\u306e\u7d75\u6587\u5b57\u306f\u30de\u30c3\u30c1\u3057\u306a\u3044\u3002\u533a\u5225\u3055\u308c\u308b\uff09<\/li>\n<\/ul>\n<p>\u3068\u3001\u65e5\u672c\u8a9e\u570f\u306e\u4eba\u3005\u306b\u3068\u3063\u3066\u7d20\u6674\u3089\u3057\u3044 Collation \u306a\u306e\u3067\u3059\u304c\u3001\u4e00\u3064\u843d\u3068\u3057\u7a74\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306e\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\uff08\u4f8b\uff1a\u300ca\u300d\u3068\u300cA\u300d\u304c\u533a\u5225\u3055\u308c\u308b\uff09<\/li>\n<\/ul>\n<p>MySQL5.7 \u4ee5\u524d\u306b\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306e\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3057\u306a\u3044 Collation \u3092\u4f7f\u3063\u3066\u3044\u3066\u3001MySQL8.0 \u4ee5\u964d\u3067 utf8mb4_ja_0900_as_cs \u3092\u4f7f\u3046\u3068\u3001\u3053\u3053\u3067\u30cf\u30de\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3064\u3044\u3066 Manyi \u3055\u3093\u3089\u3084\u3001\u305d\u306e\u5834\u306b\u540c\u5e2d\u3055\u308c\u3066\u305f\u4ed6\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u65b9\u3005\u3068\u8b70\u8ad6\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u78ba\u304b\u306b\u3001\u300c\u3088\u300d\u3068\u300c\u3087\u300d\u306f\u6587\u5b57\u7684\u306b\u306f\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3067\u3042\u308a\u3001\u3072\u3089\u304c\u306a\u3084\u30ab\u30bf\u30ab\u30ca\u3067\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u306a\u3089\u3070\u3001\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3067\u3082\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u3092\u533a\u5225\u3059\u308b\u306e\u304c\u81ea\u7136\u3060\u3068\u8a00\u308f\u308c\u308c\u3070\u3001\u305d\u308c\u306f\u305d\u306e\u901a\u308a\u3068\u3044\u3046\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u304f\u308f\u3057\u304f\u3044\u3046\u3068<\/h3>\n<p>\u3061\u306a\u307f\u306b\u3001 <a href=\"http:\/\/mysqlserverteam.com\/mysql-8-0-1-accent-and-case-sensitive-collations-for-utf8mb4\/\">MySQL 8.0.1: Accent and case sensitive collations for utf8mb4<\/a> \u3067\u6b21\u306e\u3088\u3046\u306a\u8aac\u660e\u304c\u3055\u308c\u3066\u304a\u308a<\/p>\n<ul>\n<li>MySQL8.0.1 \u3067 ai_ci collations (accent insensitive, case insensitive) \u3084  as_cs collations (accent sensitive, case sensitive) \u3068\u3044\u3046 Collation \u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f<\/li>\n<li>\u3053\u308c\u3089\u306e Collation \u3067\u306f DUCET\uff08Default Unicode Collation Element Table\uff09 \u306b\u3082\u3068\u3065\u3044\u3066\u30bd\u30fc\u30c8\u3055\u308c\u307e\u3059<\/li>\n<li>ai_ci \u3067\u306f DUCET \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b primary weight \u3060\u3051\u3067\u30bd\u30fc\u30c8\u3057\u307e\u3059\u304c\u3001 as_cs \u3067\u306f primary, secondary, \u305d\u3057\u3066 tertiary weight \u3082\u898b\u3066\u30bd\u30fc\u30c8\u3057\u307e\u3059<\/li>\n<\/ul>\n<p>\u3055\u3089\u306b\u3001 <a href=\"http:\/\/mysqlserverteam.com\/mysql-8-0-1-japanese-collation-for-utf8mb4\/\">MySQL 8.0.1: Japanese collation for utf8mb4<\/a> \u3067<\/p>\n<ul>\n<li>\u3072\u3089\u304c\u306a\u3084\u30ab\u30bf\u30ab\u30ca\u3084\u3044\u308d\u3044\u308d\u3042\u308b\u306e\u3067\u3001\u65e5\u672c\u8a9e\u306e\u30bd\u30fc\u30c8\u3084\u7167\u5408\u9806\u5e8f\u306f\u8907\u96d1\u3067\u3059\u3002<\/li>\n<li>utf8mb4_ja_0900_as_cs \u3067\u306f\u3001 CLDR(Common Locale Data Repository) \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u308b\u3088\u3046\u306b\u30bd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/li>\n<li>\u305f\u3060\u3001\u65e5\u672c\u8a9e\u3067\u30ab\u30bf\u30ab\u30ca\u3068\u3072\u3089\u304c\u306a\u306e\u30bd\u30fc\u30c8\u3092\u53b3\u5bc6\u306b\u3084\u308d\u3046\u3068\u3059\u308b\u3068\u3001 quaternary level\uff08\uff14\u6b21\u30ec\u30d9\u30eb\uff09 \u307e\u3067\u6bd4\u8f03\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304c\u3001 CLDR \u304c\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u7167\u5408\u5f37\u5ea6\u306f tertiary level\uff08\uff13\u6b21\u30ec\u30d9\u30eb\uff09 \u307e\u3067\u898b\u3066\uff08primary, secondary, \u305d\u3057\u3066 tertiary weight \u3082\u898b\u3066\uff09\u30bd\u30fc\u30c8\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u73fe\u72b6\u306f quaternary level \u307e\u3067\u898b\u3066\u3044\u307e\u305b\u3093\u3002 tertiary level \u307e\u3067\u898b\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u89e3\u8aac\u304c\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002 quaternary level \u307e\u3067\u898b\u306a\u3044\u3067 tertiary level \u307e\u3067\u898b\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u306f\u30ec\u30d9\u30eb\u304c\u9ad8\u6b21\u306b\u6210\u308c\u3070\u6210\u308b\u307b\u3069\u3001\u30bd\u30fc\u30c8\u3084\u7167\u5408\u306e\u51e6\u7406\u304c\u91cd\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>UCA \u3068\u304b DUCET \u3068\u304b CLDR \u3068\u304b\u4f55\u3084\u3089\u3080\u3064\u304b\u3057\u3044\u3067\u3059\u304c\u3001<strong>\u308f\u305f\u3057\u306e\u500b\u4eba\u7684\u306a\u96d1\u306a\u7406\u89e3<\/strong>\u3067\u3059\u3068<\/p>\n<ul>\n<li>MySQL \u306f UTF-8 \u306e\u6587\u5b57\u5217\u3092\u7167\u5408\u3057\u305f\u308a\u30bd\u30fc\u30c8\u3057\u305f\u308a\u3059\u308b\u3068\u304d\u3001 Unicode \u306e\u4ed5\u69d8\u306e\u4e00\u90e8\u3067\u3042\u308b UCA(Unicode collation algorithm) \u306b\u3082\u3068\u3065\u3044\u3066\u3044\u308b\u3002<\/li>\n<li>DUCET\uff08Default Unicode Collation Element Table\uff09 \u306f Unicode \u3067\u898f\u5b9a\u3055\u308c\u305f\u3001\u7167\u5408\u306e\u305f\u3081\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30fc\u30d6\u30eb\u3060\u304c\u3001 DUCET \u306f\u8a00\u8a9e\u3054\u3068\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u3067\u3042\u308b\u3002 CLDR(Common Locale Data Repository) \u306b\u306f\u30ab\u30b9\u30bf\u30e0\u30c6\u30fc\u30d6\u30eb\u306e\u4e00\u90e8\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002<\/li>\n<li>MySQL8.0.1 \u306f\u6700\u65b0\u306e Unicode 9.0.0 \u3001 UCA 9.0.0 \u306b\u3082\u3068\u3065\u3044\u3066\u30bd\u30fc\u30c8\u3084\u7167\u5408\u3092\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u305d\u308c\u304c as_cs collations \u3067\u3042\u308b\u3002<\/li>\n<li>\u65e5\u672c\u8a9e\u306f\u8907\u96d1\u306a\u306e\u3067\u3001 utf8mb4_ja_0900_as_cs \u3067\u306f CLDR \u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30ab\u30b9\u30bf\u30e0\u30c6\u30fc\u30d6\u30eb\u3082\u53c2\u7167\u3057\u3066\u3044\u308b\u3002<\/li>\n<li>\u305f\u3060\u3001utf8mb4_ja_0900_as_cs \u306f\uff13\u6b21\u30ec\u30d9\u30eb\u307e\u3067\u3057\u304b\u6bd4\u8f03\u3057\u3066\u306a\u3044\u306e\u3067\uff08\uff14\u6b21\u30ec\u30d9\u30eb\u307e\u3067\u6bd4\u8f03\u3057\u3066\u306a\u3044\u306e\u3067\uff09\u3001\u7d50\u679c\u3068\u3057\u3066\u3001\u3072\u3089\u304c\u306a\u3068\u30ab\u30bf\u30ab\u30ca\u304c\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u3067\u306f\u306a\u3044<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u3082\u306e\u306a\u306e\u3067\u3059\u304c\u3001\u3082\u3057\u9593\u9055\u3063\u3066\u305f\u3089\u3069\u306a\u305f\u304b\u3054\u6307\u6458\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>utf8mb4_ja_0900_as_cs \u306e 0900 \u306f\u3001 <a href=\"http:\/\/unicode.org\/Public\/UCA\/9.0.0\/\">UCA 9.0.0<\/a> \u306e 900 \u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u3002UCA9.0.0\u901a\u308a\u306b\u3084\u308b\u3093\u3060\u3068\u3044\u3046\u3001\u5f37\u3044\u610f\u5fd7\u3092\u611f\u3058\u3055\u305b\u307e\u3059\u3002<br \/>\nMySQL \u306e\u6319\u52d5\u304c Unicode collation algorithm \u306e\u901a\u308a\u306b\u306a\u3063\u3066\u304f\u308c\u308c\u3070\u3001\u6211\u3005\u306fMySQL\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u89e3\u6790\u3057\u3066\u30bd\u30fc\u30c8\u306a\u3069\u306e\u6319\u52d5\u3092\u8abf\u3079\u308b\u5fc5\u8981\u304c\u306a\u304f\u3001\uff08\u8fbc\u307f\u5165\u3063\u305f\u3053\u3068\u3092\u8abf\u3079\u305f\u3044\u3068\u304d\u306f\uff09Unicode collation algorithm \u306e\u4ed5\u69d8\u3092\u7406\u89e3\u3059\u308c\u3070\u826f\u304f\u306a\u308b\u306e\u3067\u3001\u79fb\u690d\u6027\u306e\u89b3\u70b9\u304b\u3089\u3082\u6709\u5229\u3068\u8a00\u3048\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h2>MySQL \u306e UTF-8 \u30b5\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u304a\u9858\u3044\u3057\u305f\u3053\u3068<\/h2>\n<p>\u308f\u305f\u3057\u304b\u3089 Manyi \u3055\u3093\u306b\u8aac\u660e\u3057\u3066\u304a\u9858\u3044\u3057\u305f\u3053\u3068\u3092\u5217\u6319\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u79c1\u305f\u3061\u304c utf8mb4 \u3092\u4f7f\u3063\u3066\u3044\u308b\u7406\u7531\u306e\u4e00\u3064\u306f\u3001iPhone \u306a\u3069\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u304b\u3089 4byte \u306e UTF-8 \u306e\u7d75\u6587\u5b57\u3092\u5165\u529b\u3067\u304d\u308b\u304b\u3089\u3067\u3059\u3002\u30e6\u30fc\u30b6\u304c\u5165\u529b\u3057\u3066\u304f\u308b\u30c7\u30fc\u30bf\u3092\u3001\u6211\u3005\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b INSERT \u3057\u3001\u9069\u5207\u306b\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>MySQL \u304c utf8mb4 \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u306f\u3001 iPhone \u3084 Android \u5411\u3051\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u79c1\u305f\u3061\u3068\u3057\u3066\u306f\u3001 MySQL \u3092\u4f7f\u3046\u5f37\u3044\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u3064\u3068\u8a00\u3048\u307e\u3059\u3002<\/li>\n<li>MySQL \u304c strict \u306b Unicode \u3092\u6271\u3063\u3066\u304f\u308c\u308b\u3053\u3068\u3092\u671b\u307f\u307e\u3059\u3002\u65e5\u672c\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u306f\u3001\u304b\u3064\u3066 CP932 \u306a\u3069\u3067\u3081\u3093\u3069\u304f\u3055\u3044\u601d\u3044\u3092\u3057\u307e\u3057\u305f\u3002<\/li>\n<li>\u65e5\u672c\u8a9e\u306e Collation \u306f\u3001\u4f7f\u3046\u4eba\u306b\u3088\u3063\u3066\u6c42\u3081\u308b\u7b54\u3048\u304c\u7570\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u601d\u3044\u307e\u3059\u3002 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/adding-collation.html\">MySQL \u306f Collaion \u3092 XML \u3067\u62e1\u5f35\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b<\/a>\u306e\u3067\u3001 MySQL \u306bdefault\u3067\u7d44\u307f\u8fbc\u307e\u308c\u308b Collaction \u306f\u3001strict \u306b Unicode \u3092\u6271\u3063\u3066\u304f\u308c\u308c\u3070\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/li>\n<li><a href=\"http:\/\/mysqlserverteam.com\/the-mysql-8-0-1-milestone-release-is-available\/\">MySQL 8.0.1 \u3067 Unicode 9.0.0 \u5bfe\u5fdc<\/a>\u3057\u3066\u304f\u308c\u305f\u3053\u3068\u3092\u6b53\u8fce\u3057\u307e\u3059\u3002<\/li>\n<li>\u4eca\u5f8c\u3001 iOS \u3084 Android \u3067\u6271\u3048\u308b\u7d75\u6587\u5b57\u304c\u5897\u3048\u3066\u3044\u304f\u3068\u3057\u305f\u306a\u3089\u3070\u3001 MySQL \u304c\u305d\u308c\u3089\u3092\u30cd\u30a4\u30c6\u30a3\u30d6\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304f\u308c\u308b\u306e\u306f\u3001 \u6211\u3005\u304cMySQL \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u7d9a\u3051\u3066\u3044\u304f\u5927\u304d\u306a\u7406\u7531\u306b\u306a\u308a\u3048\u307e\u3059\u3002 Apple \u3084 Google \u304c\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3067\u4f7f\u3048\u308b\u7d75\u6587\u5b57\u3092\u5897\u3084\u3057\u3066\u3044\u3063\u305f\u3068\u304d\u3001MySQL\u304c\u305d\u308c\u306b\u8ffd\u968f\u3057\u3066\u304f\u308c\u308b\u3068\u52a9\u304b\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>\u304b\u3064\u3066\u3001\u65e5\u672c\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306f\u3044\u308d\u3044\u308d\u5927\u5909\u3067\u3057\u305f<\/h2>\n<p>\u308f\u305f\u3057\u306f\u3053\u306e\u5206\u91ce\u306b\u304a\u3044\u3066\u7d20\u4eba\u306a\u3093\u3067\u3048\u3089\u305d\u3046\u306a\u3053\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u304c\u3001\u304b\u3064\u3066\u3001\u65e5\u672c\u8a9e\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306f\u3001\u4e92\u63db\u6027\u306b\u304a\u3044\u3066\u304b\u306a\u308a\u5927\u5909\u3067\u3057\u305f\u3002<br \/>\n\u30d1\u30c3\u3068\u601d\u3044\u3064\u304f\u3060\u3051\u3067\u3082<\/p>\n<ul>\n<li>CP932 \u306e wave dash \u3092 UTF-8 \u306e wave dash \u306b\u4e0a\u624b\u304f\u5909\u63db\u3067\u304d\u306a\u3044<\/li>\n<li>\u30d5\u30a3\u30fc\u30c1\u30e3\u30fc\u30d5\u30a9\u30f3\u6642\u4ee3\u306e\u643a\u5e2f\u96fb\u8a71\u3067\u6271\u308f\u308c\u305f\u7d75\u6587\u5b57\u306f\u3001\u4e8b\u696d\u8005\u3054\u3068\u306b\u4ed5\u69d8\u304c\u7570\u306a\u308b\u6a5f\u7a2e\u4f9d\u5b58\u6587\u5b57\u3067\u3042\u3063\u305f<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306b\u5bfe\u3057\u3066\u3001\u304b\u3064\u3066\u30a8\u30f3\u30b8\u30cb\u30a2\u306f\u3001\u81ea\u524d\u3067\u5909\u63db\u30c6\u30fc\u30d6\u30eb\u7528\u610f\u3057\u3066\u3001\u30d0\u30a4\u30ca\u30ea\u8aad\u3093\u3067\u5909\u63db\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u304a\u5ba2\u69d8\u304c\u5165\u529b\u3057\u305f\u6587\u5b57\u5217\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u3001\u305d\u3046\u3044\u3063\u305f\u5730\u9053\u306a\u82e6\u52b4\u304c\u3042\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3001<br \/>\niOS \u3082 Android \u3082 MySQL \u3082\u3001\u3059\u3079\u3066 Unicode \u306e\u4ed5\u69d8\u306b\u5247\u3063\u3066\u30bd\u30fc\u30c8\u3084\u7167\u5408\u3092\u3057\u3066\u304f\u308c\u308c\u3070\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306f\u624b\u9593\u3092\u639b\u3051\u305a\u306b\u3001\u540c\u3058\u7d75\u6587\u5b57\u3092\u8868\u793a\u3057\u3001\u540c\u3058\u9806\u5e8f\u3067\u30bd\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3059\u3002<br \/>\n\u3053\u308c\u304b\u3089\u3082 Unicode \u306b\u65b0\u3057\u3044\u6587\u5b57\u306f\u8ffd\u52a0\u3055\u308c\u3066\u3044\u304f\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u3046\u306a\u3063\u3066\u304f\u308c\u308b\u3068\u826f\u3044\u306a\u3068\u3001\u5fc3\u304b\u3089\u9858\u3063\u3066\u3084\u307f\u307e\u305b\u3093\u3002<\/p>\n<h2>\u304a\u307e\u3051\uff08MySQL8.0\u306eUUID\u30b5\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\uff09<\/h2>\n<p>Manyi \u3055\u3093\u304c\u62c5\u5f53\u3055\u308c\u3066\u308b\u6a5f\u80fd\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u3001MySQL8.0\u306eUTF-8\u30b5\u30dd\u30fc\u30c8\u4ee5\u5916\u306b\u3082\u3044\u308d\u3044\u308d\u304a\u8a71\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3000MySQL 8.0 \u306e UUID \u30b5\u30dd\u30fc\u30c8\u306b\u3064\u3044\u3066\u6539\u5584\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u3082\u89e6\u308c\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>MySQL5.7 \u4ee5\u524d\u306e InnoDB \u3067 UUID \u3092 Primary Key \u306b\u3059\u308b\u3068\u3001\u6b21\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3057\u305f<\/p>\n<ul>\n<li>MySQL \u306f\u7d44\u307f\u8fbc\u307f\u578b\u3067 UUID \u578b\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001 128bit \u306e\u6570\u5024\u578b\u3067\u306f\u306a\u304f\u6587\u5b57\u5217\u3068\u3057\u3066\u4fdd\u5b58\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3067\u3001 Primary Key \u306b\u3059\u308b\u306b\u306f\u30c7\u30fc\u30bf\u3068\u3057\u3066\u5927\u304d\u3044<\/li>\n<li>MySQL\u304c\u751f\u6210\u3059\u308bUUID\u306f UUID version 1 \u3067\u3001 timestamp \u3092\u542b\u3080\u306e\u3060\u304c\u3001 \u4e0a\u4f4d\u30d3\u30c3\u30c8\u306b\u30ca\u30ce\u79d2\u304c\u683c\u7d0d\u3055\u308c\u308b\u305f\u3081\u3001InnoDB \u306e Clustered Index \u3068\u6975\u3081\u3066\u76f8\u6027\u304c\u60aa\u3044\u6027\u8cea\u304c\u3042\u308b<\/li>\n<\/ul>\n<p>\u305d\u308c\u306b\u5bfe\u3057\u3001 MySQL8.0 \u3067 <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/miscellaneous-functions.html#function_uuid-to-bin\">UUID_TO_BIN(string_uuid, swap_flag)<\/a> \u3068\u3044\u3046\u95a2\u6570\u304c\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u306a\u304b\u306a\u304b\u30b9\u30b0\u30ec\u30e2\u30ce\u3067\u3059\u3002 UUID\u306e\u6587\u5b57\u5217\u3092 binary format \u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3057\u3001 swap_flag \u3092 true \u306b\u3059\u308b\u3068<\/p>\n<p><em>If swap_flag is 1, the format of the return value differs: The time-low and time-high parts (the first and third groups of hexadecimal digits, respectively) are swapped. This moves the more rapidly varying part to the right and can improve indexing efficiency if the result is stored in an indexed column.<\/em><\/p>\n<p>\u3068\u3044\u3063\u305f\u6a5f\u80fd\u304c\u3042\u308b\u305f\u3081\u3001 binary \u306b\u5909\u63db\u3059\u308b\u3068\u304d\u3001\u6700\u4e0a\u4f4d\u30d3\u30c3\u30c8\u306b\u30ca\u30ce\u79d2\u304c\u683c\u7d0d\u3055\u308c\u306a\u3044\u305f\u3081\u3001 Clustered Index \u3067\u4f7f\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u3057\u306b\u304f\u304f\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nMySQL 8.0 \u4ee5\u964d\u3067\u306f\u3001 UUID_TO_BIN(string_uuid, swap_flag) \u3092\u4f7f\u3046\u306a\u3089\u3070\u3001 UUID \u3092 Primary Key \u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u3082\u691c\u8a0e\u3057\u3066\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>MySQL\u958b\u767a\u30c1\u30fc\u30e0\u306f\u3001\u304b\u306a\u308a\u771f\u646f\u306b\u65e5\u672c\u8a9e\u306e\u554f\u984c\u306b\u53d6\u308a\u7d44\u3093\u3067\u304f\u308c\u3066\u308b\u307f\u305f\u3044\u3067\u3059\u3057\u3001\uff08\u5143\u3005InnoDB\u3068\u76f8\u6027\u306e\u60aa\u304b\u3063\u305f\uff09UUID\u3092 Primary Key \u3068\u3057\u3066\u4f7f\u3044\u305f\u3044\u3068\u3044\u3046\u8981\u671b\u306b\u3064\u3044\u3066\u3082\u3001\u73fe\u5b9f\u7684\u306a\u89e3\u6c7a\u7b56\u3092 MySQL8.0 \u3067\u53d6\u308a\u8fbc\u3082\u3046\u3068\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u304b\u3064\u3066 MySQL5.7 \u306e DMR(Development Milestone Release) \u306e\u3068\u304d\u3001 booking.com \u304c\u7a4d\u6975\u7684\u306b\u8a55\u4fa1\u3057\u3001\u3044\u308d\u3044\u308d\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3055\u308c\u305f\u3068\u3044\u3046\u8a71\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u73fe\u5728\u3001 MySQL8.0 \u306f DMR \u306e\u72b6\u614b\u3067\u3001\u30e6\u30fc\u30b6\u304b\u3089\u306e\u8981\u671b\u3092\u53d7\u3051\u5165\u308c\u3084\u3059\u3044\u6bb5\u968e\u306b\u3042\u308a\u307e\u3059\u306e\u3067\u3001 MySQL 8.0 \u3078\u306e\u8981\u671b\u304c\u3042\u308b\u65b9\u306f\u3001\u4eca\u306e\u3046\u3061\u306b\u8a55\u4fa1\u3057\u3066\u8981\u671b\u3092\u4e0a\u3052\u3066\u304a\u304f\u3068\u3001\u307f\u3093\u306a\u30cf\u30c3\u30d4\u30fc\u306b\u306a\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"http:\/\/kamipo.github.io\/talks\/20160122-mysqlcasual9\/\">MySQL\u3068Unicode<\/a><\/li>\n<li><a href=\"https:\/\/yakst.com\/ja\/posts\/4405\">\u5bff\u53f8=\u30d3\u30fc\u30eb\u554f\u984c : MySQL 8.0\u3067\u306eUTF8\u30b5\u30dd\u30fc\u30c8\u5165\u9580 (MySQL Server Blog\u3088\u308a)<\/a><\/li>\n<li><a href=\"https:\/\/yoku0825.blogspot.jp\/2017\/04\/mysql-801utf8mb4ja0900ascs.html\">\u65e5\u3005\u306e\u899a\u66f8: MySQL 8.0.1\u3067utf8mb4_ja_0900_as_cs\u304c\u5c0e\u5165\u3055\u308c\u305f<\/a><\/li>\n<li><a href=\"http:\/\/mysqlserverteam.com\/mysql-8-0-uuid-support\/\">Mysql 8.0: UUID support<\/a><\/li>\n<li><a href=\"https:\/\/www.slideshare.net\/geirhoydalsvik\/whats-new-in-mysql-57\/23\">Whats New in MySQL 5.7 - SlideShare<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u308f\u3002\u305b\u3058\u307e\u3067\u3059\u3002 \u3055\u3044\u304d\u3093\u306e kernel \u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u305f\u3089\u3001\u4fc4\u306b Chromebook \u3078\u306e\u8208\u5473\u304c\u6e67\u3044\u3066\u304d\u305f\u306e\u3067\u3001\u9045\u307e\u304d\u306a\u304c\u3089 C302CA \u30dd\u30c1\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u308f\u305f\u3057\u306b\u3068\u3063\u3066\u4eba\u751f\u521d Core M \u3068\u3044\u3046\u3053\u3068\u3082 [&hellip;]<\/p>\n","protected":false},"author":137,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[17],"class_list":["post-16406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-mysql"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/16406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/137"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=16406"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/16406\/revisions"}],"predecessor-version":[{"id":16408,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/16406\/revisions\/16408"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=16406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=16406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=16406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}