public selectCase ( string $Field, array $Options, string $Alias ) : Gdn_SQLDriver | ||
$Field | string | The field being examined in the case statement. |
$Options | array | The options and results in an associative array. A blank key will be the final "else" option of the case statement. eg. array('null' => 1, '' => 0) results in "when null then 1 else 0". |
$Alias | string | The alias to give a column name. |
return | Gdn_SQLDriver | $this |