<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>SQL</anon>
  </categories>
  <description>PostgreSQL の JSON_SET／JSONB_SET と同じ要領で使うと失敗する。 JSON_SET(json_doc, path, val[, path, val] ...) path の指定は、JSONルートの $ から、区切り文字 '.' ピリオドで指定する。 PostgreSQL のようにキーが存在しなかったらセットする／しないの true/false 指定はなく存在しない場合は挿入、存在すれば更新である。 次のようにPostgreSQL と同様に path を指定してしまうと、 SET @j = '{&quot;title&quot;: &quot;Alpha&quot;, &quot;other&quot;: {&quot;label&quot;: …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2024%2F03%2F01%2F140029&quot; title=&quot;MySQL の JSON_SET関数 - Oboe吹きプログラマの黙示録&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-01 14:00:29</published>
  <title>MySQL の JSON_SET関数</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2024/03/01/140029</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
