On Aug 10, 2006, at 10:09 AM, Bernard Grosperrin wrote:

>
> Very new, trying to learn and understand.
>
> What is the proper way to have my own SQL Statements? For example,  
> if I
> want to add "ORDER BY", or "GROUP BY", etc..

You can specify your ORDER BY clauses in find() and findAll() (and  
many of the other model functions). Check out the API for the  
functions you're using.

> Have been trying to search for "Custom SQL", but have not found what I
> was looking for.

You can always use query() and execute() for custom SQL, though I'd  
probably stick to the model functions as often as I could.

-- John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to