summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/active_record.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index e7c823fde..d43101642 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -370,8 +370,15 @@ $this-&gt;db-&gt;or_not_like('body', 'match'); <br />
<br />
<br />// Produces: GROUP BY title, date</code>
-
<p class="important">Note: group_by() was formerly known as groupby(), which has been deprecated. </p>
+
+<h2> $this-&gt;db-&gt;distinct();<br />
+</h2>
+<p>Adds the &quot;DISTINCT&quot; keyword to to a query</p>
+<p><code>$this-&gt;db-&gt;distinct();<br />
+ $this-&gt;db-&gt;get('table');<br />
+ <br />
+ // Produces: SELECT DISTINCT * FROM table</code></p>
<h2>$this->db->having();</h2>
<p>Permits you to write the HAVING portion of your query:</p>