<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>cakephp</anon>
  </categories>
  <description>CakePHPのfindメソッドで複数のカラムのDISTINCTを実行したいなと思いcookbookを確認したのですが、 サンプルには1カラムのものしかない。 DISTINCT クエリを用いた簡単な例は次のようになります。MIN() や MAX()、その他の演算子も、同じように扱えます。 array('fields'=&gt;array('DISTINCT (User.name) AS my_column_name'), 'order'=&gt;array('User.id DESC')) これに倣ってそのまま2カラムでやってみたものの、SQL文のエラーになって困った。 で、結果、findAllを使えば良…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20110115%2F1295099252&quot; title=&quot;CakePHPのfindで複数のカラムのDISTINCT - こんにちはこんにちはmonmonです！&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-01-15 22:47:32</published>
  <title>CakePHPのfindで複数のカラムのDISTINCT</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20110115/1295099252</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
