Parameters
$key - The collection array key.
$compareOperator - The comparison operator.
$boolOperator - The boolean operator.
Syntax
PHP |
public function SetWhereOperators($key, string $compareOperator , string $boolOperator = "and") : void
|
Sets the Where Clause operators.
Example
PHP |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCDBAccessLib.php";
$dbColumns = new LJCDbColumns();
$dbColumns->Add("Name", value: "%C%");
// $compareOperator - Any valid comparison operator; defaults to "=".
// $boolOperator - "and" or "or"; defaults to "and".
$dbColumns->SetWhereOperators("Name", "like", "or");
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.