<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakaik</author_name>
  <author_url>https://blog.hatena.ne.jp/sakaik/</author_url>
  <blog_title>sakaikの日々雑感～(T)編</blog_title>
  <blog_url>https://sakaik.hateblo.jp/</blog_url>
  <categories>
    <anon>mysql</anon>
  </categories>
  <description>先日開催した Club MySQL で徳丸さんが面白いものを紹介してくれたのが印象に残ったので、整理してみます。 テーマ 「文字列と数字の自動変換」です。 基礎知識 MySQLは、なるべく可能な限り自動的に型変換を行って、ユーザの希望を叶えるべく努力をしてくれます。 以下の２つを見てください。 mysql&gt; SELECT 1+2; +-----+ | 1+2 | +-----+ | 3 | +-----+ mysql&gt; SELECT '1'+2; +-------+ | '1'+2 | +-------+ | 3 | +-------+ 前者はふつうに 数値 1 と 数値 2 を足し算したもの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakaik.hateblo.jp%2Fentry%2F20210426%2Fmysql_string_number_auto_exchange_bikkuri&quot; title=&quot;MySQLの暗黙の型変換～文字列と数字～の罠 - sakaikの日々雑感～(T)編&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>2021-04-26 15:24:33</published>
  <title>MySQLの暗黙の型変換～文字列と数字～の罠</title>
  <type>rich</type>
  <url>https://sakaik.hateblo.jp/entry/20210426/mysql_string_number_auto_exchange_bikkuri</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
