{"url":"https://tadasy.hateblo.jp/entry/20130308/1362718473","width":"100%","author_url":"https://blog.hatena.ne.jp/tadasy/","description":"\u3068\u3042\u308b\u30ab\u30e9\u30e0\u306e\u6587\u5b57\u5217\u3092\u4e00\u62ec\u3057\u3066\u7f6e\u63db\u3057\u305f\u3044\u3068\u304d\u306freplace\u95a2\u6570\u304c\u4fbf\u5229\u3002\u305f\u3068\u3048\u3070\u3001hoge_table\u306ecol1\u306b\u5165\u3063\u3066\u3044\u308b\u6587\u5b57\u5217\u306e'foo'\u3092'bar'\u306b\u7f6e\u63db\u3057\u305f\u3044\u3068\u304d\u306f update hoge_table set col1 = replace(col1, 'foo', 'bar'); \u3068\u3059\u308b\u3068\u4e00\u62ec\u3067\u66f4\u65b0\u3067\u304d\u308b\u3002 \u8abf\u3079\u308b\u3068Oracle,MySQL,Postgresql,SQLite\u3067\u4f7f\u3048\u308b\u3088\u3046\u3060\u3002SQL99\u306b\u6e96\u62e0\u3057\u3066\u3044\u308b\u304b\u306f\u8abf\u3079\u3066\u306a\u3044\u3002 \u305f\u3060\u3001oracle\u3067\u3057\u304b\u8a66\u3057\u3066\u306a\u3044\u3051\u3069\u3001\u691c\u7d22\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\u30ec\u30b3\u30fc\u30c9\u3082\u3001\u30c7\u30fc\u30bf\u306f\u304b\u308f\u3089\u306a\u3044\u3051\u3069update\u3055\u308c\u308b\u3063\u307d\u3044\u3002 \u306a\u306e\u3067\u3001where\u53e5\u3067\u5bfe\u8c61\u3092\u7d5e\u308b\u2026","title":" SQL\u306ereplace\u95a2\u6570\u304c\u4fbf\u5229","height":"190","published":"2013-03-08 13:54:33","blog_url":"https://tadasy.hateblo.jp/","image_url":null,"provider_url":"https://hatena.blog","blog_title":"It's raining cats and dogs.","categories":["SQL"],"provider_name":"Hatena Blog","version":"1.0","author_name":"tadasy","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadasy.hateblo.jp%2Fentry%2F20130308%2F1362718473\" title=\" SQL\u306ereplace\u95a2\u6570\u304c\u4fbf\u5229 - It&#39;s raining cats and dogs.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}