diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-12-18 18:22:50 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-12-18 18:22:50 +0100 |
commit | 6ddb5a17ae1a0a75ca75f846dbb7d3a98f1902a3 (patch) | |
tree | 1192959a689fc65b6995abbedb51c7c92730fdfa /user_guide/database | |
parent | 694b5b8ee6a40b57c91be3c5448bc8f5540d32d8 (diff) |
Added 'random' as an order_by() option in Active Record.
Diffstat (limited to 'user_guide/database')
-rw-r--r-- | user_guide/database/active_record.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html index d608459e4..739d56a15 100644 --- a/user_guide/database/active_record.html +++ b/user_guide/database/active_record.html @@ -353,7 +353,7 @@ $this->db->or_like('body', $match); <h2>$this->db->order_by();</h2>
<p>Lets you set an ORDER BY clause. The first parameter contains the name of the column you would like to order by.
-The second parameter lets you set the direction of the result. Options are <kbd>asc</kbd> or <kbd>desc</kbd></p>
+The second parameter lets you set the direction of the result. Options are <kbd>asc</kbd> or <kbd>desc</kbd>, or <kbd>random</kbd>. </p>
<code>$this->db->order_by("title", "desc");
<br />
@@ -375,6 +375,7 @@ The second parameter lets you set the direction of the result. Options are <kbd // Produces: ORDER BY title DESC, name ASC
</code></p>
<p class="important">Note: order_by() was formerly known as orderby(), which has been deprecated.</p>
+<p class="important">Note: random ordering is not currently supported in Orcacle or MSSQL drivers. </p>
<h2>$this->db->limit();</h2>
<p>Lets you limit the number of rows you would like returned by the query:</p>
|