<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n593977</author_name>
  <author_url>https://blog.hatena.ne.jp/n593977/</author_url>
  <blog_title>n593977のブログ</blog_title>
  <blog_url>https://n593977.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>最近仕事でZend Frameworkを利用することがあって、そのときハマった内容のメモ。delete文を実行するため、Zend_Db#delete($sql, $where)を利用しようとしたのだけど、どうも$whereへ複数指定した場合や主キー以外を指定した場合に上手くいかない。 で、以下のように書いたら解決した。 $where = array( $db-&gt;quoteInto('key = ?', $key), $db-&gt;quoteInto('date &lt; ?', $date), ; $count = $db-&gt;delete('table', $where); ネットで調べると$where…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn593977.hatenablog.com%2Fentry%2F20110913%2F1315892025&quot; title=&quot;Zend_Dbのdeleteでハマった話 - n593977のブログ&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>2011-09-13 14:33:45</published>
  <title>Zend_Dbのdeleteでハマった話</title>
  <type>rich</type>
  <url>https://n593977.hatenablog.com/entry/20110913/1315892025</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
