<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teenprogrammer</author_name>
  <author_url>https://blog.hatena.ne.jp/teenprogrammer/</author_url>
  <blog_title>ぷっぽプログラミング備忘録</blog_title>
  <blog_url>https://neetchanprogrammer.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>postgresql</anon>
  </categories>
  <description>概要 php(PDO) + postgresql の生SQLを実行時に Invalid parameter number: mixed named and positional parameters が発生。 原因、postgresqlのjsonbの演算子などではよく「?」を使うことがあるが、これと、phpのPDOのプリペアドステートメントの「?」（疑問符パラメータ）と勘違いされてエラー 例） foo_table.bar ? 'fuga_colum_name' といったpostgrsqlのjsonbの演算子（fuga_colum_nameというキーがbarカラムの中に存在するかを調べる） 解決…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneetchanprogrammer.hatenablog.com%2Fentry%2F2023%2F12%2F07%2F181224&quot; title=&quot;phpのPDOで、 postgresqlのjsonb演算子（?）を使いたい場合 - ぷっぽプログラミング備忘録&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>2023-12-07 18:12:24</published>
  <title>phpのPDOで、 postgresqlのjsonb演算子（?）を使いたい場合</title>
  <type>rich</type>
  <url>https://neetchanprogrammer.hatenablog.com/entry/2023/12/07/181224</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
