<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazukifu</author_name>
  <author_url>https://blog.hatena.ne.jp/kazukifu/</author_url>
  <blog_title>Kazuki's Blog</blog_title>
  <blog_url>https://kazukifu.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに システム運用において、データの整形や正規化を目的として既存テーブルから新しいテーブルへデータを移行する作業は頻繁に発生します。特にIoTデバイスから収集された生データテーブル（今回のケースでは sensor_readings）から、アプリケーション側で利用しやすい形式のテーブル（今回の wp_thermo_hygrometer_utc）へ移行する際には、型変換が大きな課題となります。 本記事では、MariaDB環境下で、TEXT型で保存されていたタイムスタンプをDATETIME型へ、DOUBLE/INT型の測定値をDECIMAL(5,2)型へ安全に移行した手順について、テスト環境の構…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazukifu.hatenablog.com%2Fentry%2F2025%2F11%2F29%2F094354&quot; title=&quot;💧 MariaDB で sensor_readings のデータを wp_thermo_hygrometer_utc へ移行する - Kazuki&amp;#39;s 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>2025-11-29 09:43:54</published>
  <title>💧 MariaDB で sensor_readings のデータを wp_thermo_hygrometer_utc へ移行する</title>
  <type>rich</type>
  <url>https://kazukifu.hatenablog.com/entry/2025/11/29/094354</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
