<?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>UNPIVOT に近い、わざわざSQLで行うことがナンセンスな気もしたが、 split 対象の文字列を mybatis などから動的パラメータとして指定して結果を他のテーブルと結合して 処理するＳＱＬなど応用範囲は広がると思った。Oracle の場合のサンプル’A,B,C' をカンマ区切りで分割、 WITH strings AS ( SELECT 'A,B,C' AS value FROM dual ) , splits AS ( SELECT lines.column_value AS position , REGEXP_SUBSTR(strings.value,'[^,]+', 1, li…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2025%2F12%2F02%2F205603&quot; title=&quot;文字列のsplit ⇒ 行処理するSQL （ORACLE） - 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>2025-12-02 20:56:03</published>
  <title>文字列のsplit ⇒ 行処理するSQL （ORACLE）</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2025/12/02/205603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
