<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nminebb</author_name>
  <author_url>https://blog.hatena.ne.jp/nminebb/</author_url>
  <blog_title>Minerva Consulting AI &amp; データエンジニア</blog_title>
  <blog_url>https://www.mitech.work/</blog_url>
  <categories>
    <anon>SQL</anon>
    <anon>考え方・設計</anon>
  </categories>
  <description>ストアドプロシジャの内部ループ処理とは何か 本記事で紹介しているのは、SQLのストアドプロシジャ内部で、変数とループ処理を用いて SQL 文そのものを動的に生成・実行する手法です。 Excel-VBA で「変数を使い、For ループで処理内容を組み立てる」のと同じ発想を、SQL の世界で実現しています。 技術的なポイント ・SQLのストアドプロシジャ内で SQL文を固定で書くのではなく 変数＋ループ処理により SQL 句を組み立てている ・これにより テーブル名や列名が可変の SQL を扱うことが可能になる ・業務要件ごとに 「テーブルが違う」「列構成が違う」 といったケースでも、 同一の汎用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mitech.work%2Fentry%2F20240403%2F1712114779&quot; title=&quot;ストアドプロシジャの内部ループ処理 - Minerva Consulting AI &amp;amp; データエンジニア&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-04-03 12:26:19</published>
  <title>ストアドプロシジャの内部ループ処理</title>
  <type>rich</type>
  <url>https://www.mitech.work/entry/20240403/1712114779</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
