<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babydaemons</author_name>
  <author_url>https://blog.hatena.ne.jp/babydaemons/</author_url>
  <blog_title>babydaemons’ blog</blog_title>
  <blog_url>https://babydaemons.hatenablog.com/</blog_url>
  <categories>
    <anon>SQLServer</anon>
    <anon>T-SQL</anon>
  </categories>
  <description>レガシーマイグレーションで帳票の印字内容で全角・半角文字を意識した処理があり、バイト数指定の文字列関数が必要になりました。 http://blogs.sqlpassj.org/yoshihirokawabata/archive/2006/08/03/17581.aspxにLeftB, RightBはあったので、MidB関数の第3引数省略版を作りました。LeftB, RightBの類推で作るとこんな感じ。 CREATE FUNCTION MidB ( @value varchar(8000), @start int, @length int ) RETURNS varchar(8000) AS …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabydaemons.hatenablog.com%2Fentry%2F20071203%2F1210349458&quot; title=&quot;SQLServerでのMidB関数 - babydaemons’ 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-12-03 01:10:58</published>
  <title>SQLServerでのMidB関数</title>
  <type>rich</type>
  <url>https://babydaemons.hatenablog.com/entry/20071203/1210349458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
