<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tamago-engineer</author_name>
  <author_url>https://blog.hatena.ne.jp/tamago-engineer/</author_url>
  <blog_title>TRY AND ERROR</blog_title>
  <blog_url>https://tamago-engineer.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PDOを使ってDBから検索結果の件数を取得したい場合、 PHPの公式マニュアルでは、rowCount()というそれらしきメソッドがあります。ただ、公式マニュアルによると「rowCount()はすべてのデータベースでうまく作用するとは限らない」とのこと。。。そもそも、rowCount()はinsert、delete、updateの実行件数を取得することが目的で、select件数を取得するのは推奨されないっぽい。。 PDOStatement::rowCount() は 相当する PDOStatement オブジェクトによって実行された 直近の DELETE, INSERT, UPDATE 文によっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftamago-engineer.hateblo.jp%2Fentry%2F2015%2F05%2F31%2F001844&quot; title=&quot;【PHP】PDOでselect件数を取得する - TRY AND ERROR&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>2015-05-31 00:18:44</published>
  <title>【PHP】PDOでselect件数を取得する</title>
  <type>rich</type>
  <url>https://tamago-engineer.hateblo.jp/entry/2015/05/31/001844</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
