v5:reference:connection:getmedian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
v5:reference:connection:getmedian [2016/01/17 01:03] – ↷ Page moved from v5:reference:conection:getmedian to v5:reference:connection:getmedian mnewnham | v5:reference:connection:getmedian [2025/10/06 16:38] (current) – mnewnham | ||
---|---|---|---|
Line 4: | Line 4: | ||
== Syntax == | == Syntax == | ||
mixed getMedian { | mixed getMedian { | ||
- | | + | string $table |
- | mixed string $column | + | |
- | | + | |
} | } | ||
</ | </ | ||
+ | The method getMedian() does not return a true [[https:// | ||
- | Returns | + | If the number |
- | The $where clause is optional, but if used, the WHERE statement must include | + | Because the method does not perform an arithmetic operation on the returned data, it can be used on character fields as well as numeric. |
+ | |||
+ | |||
+ | |||
+ | The $where clause is optional, but if used, the WHERE statement must begin with the keyword // | ||
+ | |||
+ | If an error occurs | ||
------------------------------ | ------------------------------ | ||
==== Usage ==== | ==== Usage ==== | ||
Line 22: | Line 29: | ||
$table = ' | $table = ' | ||
$column = ' | $column = ' | ||
+ | $where | ||
+ | |||
+ | $medianPopulation = $db-> | ||
- | $medianPopulation = $db-> | ||
</ | </ | ||
v5/reference/connection/getmedian.txt · Last modified: by mnewnham