<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>IT7C</author_name>
  <author_url>https://blog.hatena.ne.jp/IT7C/</author_url>
  <blog_title>イノベートな非日常</blog_title>
  <blog_url>https://it7c.hatenadiary.org/</blog_url>
  <categories>
    <anon>SQL Server</anon>
  </categories>
  <description>SysJobsなどのシステムテーブルで使用されている、時刻のフォーマットがinteger型で、HHMMSS形式で格納されている為、これをHH:MM:SSの文字列に変換する方法。もともと、クライアント側(プログラム側C#等)のDate関数を使うことが想定されている為、SQL Server側には、変換する関数が用意されていない。100で割っていく方法など、いろいろあるが、以下で変換可能 SELECT STUFF(STUFF(RIGHT('0000' + CAST(&lt;対象カラム&gt; AS VARCHAR(6)),6),3,0,':'),6,0,':') AS 'HH:MM:SS' FROM &lt;対象テー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fit7c.hatenadiary.org%2Fentry%2F20130920%2F1379615025&quot; title=&quot; MS SQL ServerでHHMMSS形式のinteger型をHH:MM:SSの文字列に変換する - イノベートな非日常&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>2013-09-20 03:23:45</published>
  <title> MS SQL ServerでHHMMSS形式のinteger型をHH:MM:SSの文字列に変換する</title>
  <type>rich</type>
  <url>https://it7c.hatenadiary.org/entry/20130920/1379615025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
