<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanabusa-snow</author_name>
  <author_url>https://blog.hatena.ne.jp/hanabusa-snow/</author_url>
  <blog_title>プログラ生活</blog_title>
  <blog_url>https://www.pon-x.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>SQL</anon>
  </categories>
  <description>www.pon-x.jp 前回の続き 今回は、変数の扱いについて説明していきます。 変数宣言 これまで、変数というのは使わずにきましたが、SQLでも変数を使う場面というのは多分にあります。 例えば、システムに組み込むときに、WHERE句の抽出条件を可変にしたいときに、引数から代入したいときなど変数を使うことになろうと思います。 では、早速使い方の説明です。 まずは、変数の作り方です。 変数を作ることを、変数を宣言するといいます。 以下の通り変数宣言できます。 DECLARE @変数名 データ型 ※変数名の頭には必ず@をつけてください。 具体的にやってみます。 数値型の変数と、10文字までの文字…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pon-x.jp%2Fentry%2F2020%2F12%2F10%2F091550&quot; title=&quot;【SQL Server(連載)】変数 -25- - プログラ生活&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-ak.f.st-hatena.com/images/fotolife/h/hanabusa-snow/20201210/20201210090915.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-10 09:15:50</published>
  <title>【SQL Server(連載)】変数 -25-</title>
  <type>rich</type>
  <url>https://www.pon-x.jp/entry/2020/12/10/091550</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
