In the Zend Framework there is a distinct() method that performs DISTINCT in sql , but is there a method for DISTINCT ON ?

    1 answer 1

    DISTINCT ON not part of the SQL standard, and therefore, although PostgreSql supports this method, Zend Framework does not support it.

    • $ select-> distinct, so DISTINCT is added, can we enter DISTINCT ON with pens like this? Do not call the method, but insert the line? - hik
    • As far as I know, you can do what you want only by expanding the adapter. - Mstislav Pavlov
    • those. get into the zend and register a new method I need? - hik
    • @hik no, you do not need to climb into the zend, just create your own extension of the existing adapter and finish it as you need. Here you can read about considering a similar question: stackoverflow.com/questions/6998382/… - Mstislav Pavlov