<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>devillikeaangel</author_name>
  <author_url>https://blog.hatena.ne.jp/devillikeaangel/</author_url>
  <blog_title>kikukawa's diary</blog_title>
  <blog_url>https://kkkw.hatenablog.jp/</blog_url>
  <categories>
    <anon>SQL Server</anon>
  </categories>
  <description>Sql Server 2005 standardでなった。 はまったのでメモ datetime型の'2009-06-02 13:30:31.000'という値を 分単位まで使用したかった。その際、秒単位は無視したい。 select convert(smalldatetime,'2009-06-02 13:30:31.000') というようなSQLを発行すると下記のような結果になる 実行結果 2009-06-02 13:31:00 31秒が丸められて、31分になる。秒部分は切り捨てだと思ってた。なので、以下の方法で対処。 一回、秒以下を切り捨てて、それから変換する。 select convert(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkkw.hatenablog.jp%2Fentry%2F20090604%2F1244125527&quot; title=&quot;SQL Server smalldatetimeへの変換で丸め処理 - kikukawa&amp;#39;s diary&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>2009-06-04 23:25:27</published>
  <title>SQL Server smalldatetimeへの変換で丸め処理</title>
  <type>rich</type>
  <url>https://kkkw.hatenablog.jp/entry/20090604/1244125527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
