DQL (Doctrine Query Language) - WHERE clause.php 442 Bytes
Newer Older
hansbrix's avatar
hansbrix committed
1 2
Syntax:
<code>
3
WHERE <where_condition>
hansbrix's avatar
hansbrix committed
4 5 6 7 8 9
</code>

*  The WHERE clause, if given, indicates the condition or conditions that the records must satisfy to be selected.



10
*  //where_condition// is an expression that evaluates to true for each row to be selected.
hansbrix's avatar
hansbrix committed
11 12 13 14 15 16 17 18 19 20 21 22



*  The statement selects all rows if there is no WHERE clause.



*  When narrowing results with aggregate function values HAVING clause should be used instead of WHERE clause




23