<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taku-0728</author_name>
  <author_url>https://blog.hatena.ne.jp/taku-0728/</author_url>
  <blog_title>Yappli Tech Blog</blog_title>
  <blog_url>https://tech.yappli.io/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>MySQL</anon>
  </categories>
  <description>はじめに こんにちは、サーバサイドエンジニアの中川(@tkdev0728)です。 Yappliに入社して半年が経とうとしていて、時の流れは早いなと感じている今日この頃です。 さて、今回はタイトル通りとある業務にてJSONで格納されている値から特定のキーを抽出したいと思い、JSON_CONTAINSを使おうとしたらハマりました。 今後同じようなことで悩む方がいないことを願ってご紹介しようと思います。 やりたかったこと id user 1 {&quot;age&quot;: &quot;30&quot;, &quot;name&quot;: &quot;tanaka&quot;} 2 {&quot;age&quot;: &quot;33&quot;, &quot;name&quot;: &quot;satou&quot;} 3 {&quot;age&quot;: &quot;25&quot;,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.yappli.io%2Fentry%2Fjson_contains&quot; title=&quot;GoのsqlxパッケージにてJSON_CONTAINSを使ってSELECTしようとしてハマった話 - Yappli Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/153221285/1600243384103025</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-30 11:30:07</published>
  <title>GoのsqlxパッケージにてJSON_CONTAINSを使ってSELECTしようとしてハマった話</title>
  <type>rich</type>
  <url>https://tech.yappli.io/entry/json_contains</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
