<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pinkumohikan</author_name>
  <author_url>https://blog.hatena.ne.jp/pinkumohikan/</author_url>
  <blog_title>モヒカンメモ</blog_title>
  <blog_url>https://blog.pinkumohikan.com/</blog_url>
  <categories>
    <anon>MySQL</anon>
    <anon>開発tips</anon>
  </categories>
  <description>雑に数万件ぐらいのidを突っ込んでMySQLへselectクエリ投げたらエラーになったので調べた。 ざっくりまとめ MySQLでプリペアドステートメントを使う場合、65536個以上のプレースホルダを含めることができない 先の制約はシステム変数で緩和できない (変更できない) ハックとして、プリペアドステートメントを使わない &quot;動的プレースホルダ&quot; を使うことで先の制約を回避することができる エラーメッセージ 前提: MySQL 5.7 SQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeh…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.pinkumohikan.com%2Fentry%2Fworkaround-for-mysql-too-many-placeholders-error&quot; title=&quot;MySQLでプレースホルダ使いすぎて怒られるのを動的プレースホルダを使って回避する - モヒカンメモ&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>https://hbb.afl.rakuten.co.jp/hgb/1a200f02.32ec2d7e.1a200f03.31a4ed34/?me_id=1213310&amp;item_id=19130417&amp;m=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F3163%2F9784797393163.jpg%3F_ex%3D80x80&amp;pc=https%3A%2F%2Fthumbnail.image.rakuten.co.jp%2F%400_mall%2Fbook%2Fcabinet%2F3163%2F9784797393163.jpg%3F_ex%3D240x240&amp;s=240x240&amp;t=picttext</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-18 14:31:07</published>
  <title>MySQLでプレースホルダ使いすぎて怒られるのを動的プレースホルダを使って回避する</title>
  <type>rich</type>
  <url>https://blog.pinkumohikan.com/entry/workaround-for-mysql-too-many-placeholders-error</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
