{"id":1354,"date":"2019-02-17T12:52:54","date_gmt":"2019-02-17T03:52:54","guid":{"rendered":"https:\/\/clouds.tokyo\/blog\/?p=1354"},"modified":"2023-02-07T12:35:48","modified_gmt":"2023-02-07T03:35:48","slug":"sql-kana","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/sql-kana\/","title":{"rendered":"\u3010SQL\u3011DB\u306e\u3072\u3089\u304c\u306a\u3092\u30ab\u30bf\u30ab\u30ca\u306b\u4e00\u62ec\u7f6e\u63db\u3059\u308b"},"content":{"rendered":"<p>\u79c1\u304c\u958b\u767a\u3059\u308b\u5834\u5408\u3001\u6c0f\u540d\u306a\u3069\u306e\u30ab\u30ca\u306f\u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u304c\u3001<br \/>\n\u3068\u304f\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u306a\u304b\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u3063\u3066\u3001<br \/>\n\u4eba\u306b\u3088\u3063\u3066\u3072\u3089\u304c\u306a\u3060\u3063\u305f\u308a\u30ab\u30bf\u30ab\u30ca\u3060\u3063\u305f\u308a\u3070\u3089\u3070\u3089\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u6539\u4fee\u3067<br \/>\n\u30ab\u30bf\u30ab\u30ca\u4ee5\u5916\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3088\u3046\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30c1\u30a7\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u305f\u306e\u3067\u3059\u304c<br \/>\n\u305d\u308c\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u3092\u30ab\u30bf\u30ab\u30ca\u306b\u7d71\u4e00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304c\u306a\u3044\u304b\u8abf\u3079\u307e\u3057\u305f\u304c\u3001\u7d50\u5c40\u3084\u3063\u305f\u306e\u306f\u3053\u3061\u3089\u3002<\/p>\n<pre>\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304c\",\"\u30ac\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304e\",\"\u30ae\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3050\",\"\u30b0\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3052\",\"\u30b2\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3054\",\"\u30b4\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3056\",\"\u30b6\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3058\",\"\u30b8\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305a\",\"\u30ba\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305c\",\"\u30bc\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305e\",\"\u30be\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3070\",\"\u30d0\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3073\",\"\u30d3\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3076\",\"\u30d6\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3079\",\"\u30d9\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307c\",\"\u30dc\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3071\",\"\u30d1\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3074\",\"\u30d4\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3077\",\"\u30d7\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307a\",\"\u30da\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307d\",\"\u30dd\");\r\n\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3042\",\"\u30a2\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3044\",\"\u30a4\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3046\",\"\u30a6\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3048\",\"\u30a8\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304a\",\"\u30aa\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304b\",\"\u30ab\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304d\",\"\u30ad\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u304f\",\"\u30af\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3051\",\"\u30b1\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3053\",\"\u30b3\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3055\",\"\u30b5\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3057\",\"\u30b7\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3059\",\"\u30b9\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305b\",\"\u30bb\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305d\",\"\u30bd\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u305f\",\"\u30bf\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3061\",\"\u30c1\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3064\",\"\u30c4\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3066\",\"\u30c6\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3068\",\"\u30c8\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306a\",\"\u30ca\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306b\",\"\u30cb\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306c\",\"\u30cc\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306d\",\"\u30cd\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306e\",\"\u30ce\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u306f\",\"\u30cf\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3072\",\"\u30d2\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3075\",\"\u30d5\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3078\",\"\u30d8\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307b\",\"\u30db\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307e\",\"\u30de\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u307f\",\"\u30df\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3080\",\"\u30e0\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3081\",\"\u30e1\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3082\",\"\u30e2\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3084\",\"\u30e4\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3086\",\"\u30e6\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3088\",\"\u30e8\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3089\",\"\u30e9\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u308a\",\"\u30ea\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u308b\",\"\u30eb\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u308c\",\"\u30ec\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u308d\",\"\u30ed\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u308f\",\"\u30ef\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3092\",\"\u30f2\");\r\nUPDATE `\u30c6\u30fc\u30d6\u30eb\u540d` SET column = REPLACE(column, \"\u3093\",\"\u30f3\");\r\n<\/pre>\n<p>\u5b9f\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u65b9\u6cd5\u3067\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79c1\u304c\u958b\u767a\u3059\u308b\u5834\u5408\u3001\u6c0f\u540d\u306a\u3069\u306e\u30ab\u30ca\u306f\u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044\u307e\u3059\u304c\u3001 \u3068\u304f\u306b\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u306a\u304b\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u3063\u3066\u3001 \u4eba\u306b\u3088\u3063\u3066\u3072\u3089\u304c\u306a\u3060\u3063\u305f\u308a\u30ab\u30bf\u30ab\u30ca\u3060\u3063\u305f\u308a\u3070\u3089\u3070\u3089\u3067\u3057\u305f\u3002 \u305d\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u6539\u4fee\u3067 \u30ab\u30bf &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/sql-kana\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010SQL\u3011DB\u306e\u3072\u3089\u304c\u306a\u3092\u30ab\u30bf\u30ab\u30ca\u306b\u4e00\u62ec\u7f6e\u63db\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[586,43,45,584,585],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pezW3u-lQ","jetpack-related-posts":[{"id":528,"url":"https:\/\/clouds.tokyo\/blog\/mysql_replace\/","url_meta":{"origin":1354,"position":0},"title":"\u3010MySQL\u3011\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u4e00\u62ec\u7f6e\u63db\u3059\u308b","author":"yamamoto","date":"2010\u5e7411\u670814\u65e5","format":false,"excerpt":"UPDATE\u6587\u3067\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3067\u5909\u66f4\u3059\u308b\u969b\u306b\u3001 \u300c\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u7f6e\u63db\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":646,"url":"https:\/\/clouds.tokyo\/blog\/mysql_add_col\/","url_meta":{"origin":1354,"position":1},"title":"\u3010MySQL\u3011\u30c6\u30fc\u30d6\u30eb\u306b\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3059\u308b","author":"yamamoto","date":"2012\u5e747\u670819\u65e5","format":false,"excerpt":"MySQL\u3067\u30c6\u30fc\u30d6\u30eb\u306b\u30ab\u30e9\u30e0\u3092\u5f8c\u304b\u3089\u8ffd\u52a0\u3059\u308b\u3068\u304d\u306e\u66f8\u5f0f\u3092\u3059\u3050\u5fd8\u308c\u308b\u306e\u3067\u30e1\u30e2\u3002 \u30c6\u30fc\u30d6\u30eb\u306e\u672b\u5c3e\u306b\u8ffd\u52a0 \u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":661,"url":"https:\/\/clouds.tokyo\/blog\/mysql_case\/","url_meta":{"origin":1354,"position":2},"title":"\u3010MySQL\u3011SQL\u3067IF\u6587\uff08CASE\uff09\u3092\u4f7f\u3046","author":"yamamoto","date":"2012\u5e748\u67082\u65e5","format":false,"excerpt":"SQL\u3067\u6761\u4ef6\u306b\u3088\u3063\u3066\u8fd4\u3059\u5024\u3092\u5909\u3048\u305f\u3044\u3068\u304d\u3001 NULL\u306e\u3068\u304d\u306fIFNULL\u3067\u7c21\u5358\u3067\u3059\u304c\u3001 select\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":500,"url":"https:\/\/clouds.tokyo\/blog\/mysql_grp_con\/","url_meta":{"origin":1354,"position":3},"title":"\u3010MySQL\u3011\u8907\u6570\u884c\u306e\u7d50\u679c\u3092\u4e00\u884c\u306b\u307e\u3068\u3081\u3066\u8fd4\u3059","author":"yamamoto","date":"2011\u5e743\u670816\u65e5","format":false,"excerpt":"MySQL\u3067\u8907\u6570\u884c\u306e\u7d50\u679c\u30921\u884c\u306b\u307e\u3068\u3081\u308b\u306b\u306fGROUP_CONCAT\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 SELECT\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":237,"url":"https:\/\/clouds.tokyo\/blog\/php_pdo_ps\/","url_meta":{"origin":1354,"position":4},"title":"\u3010PHP\u3011PDO\u3067\u30d7\u30ea\u30da\u30a2\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8","author":"yamamoto","date":"2008\u5e7412\u670823\u65e5","format":false,"excerpt":"SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u5bfe\u7b56\u306e\u7b2c\u4e00\u6b69\u3068\u3057\u3066\u3001 SQL\u306e\u5b9f\u884c\u306b\u306f\u30d7\u30ea\u30da\u30a2\u30c9\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5fb9\u5e95\u3057\u305f\u307b\u3046\u304c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":728,"url":"https:\/\/clouds.tokyo\/blog\/mysql_locate\/","url_meta":{"origin":1354,"position":5},"title":"\u3010MySQL\u3011PHP\u306estrpos\u3092SQL\u3067\u3084\u308b","author":"yamamoto","date":"2017\u5e745\u670818\u65e5","format":false,"excerpt":"MySQL\u306eLOCATE\u95a2\u6570\u3067PHP\u306estrpos\u95a2\u6570\u3068\u540c\u69d8\u306e\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 SELECT LOC\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/1354"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=1354"}],"version-history":[{"count":3,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/1354\/revisions"}],"predecessor-version":[{"id":1357,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/1354\/revisions\/1357"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=1354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=1354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=1354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}