Logidav Docs

Field extends FunctionNode
in package

Usage: FIELD(str,str1,str2,str3,...)

FIELD returns the index (position) of str in the str1, str2, str3, ... list. Returns 0 if str is not found. If all arguments to FIELD() are strings, all arguments are compared as strings. If all arguments are numbers, they are compared as numbers. Otherwise, the arguments are compared as double. If str is NULL, the return value is 0 because NULL fails equality comparison with any value. FIELD() is the complement of ELT(). (Taken from MySQL documentation.)

Tags
author

Jeremy Hicks jeremy.hicks@gmail.com

version
2011.06.09

Table of Contents

Properties

$field  : mixed
$values  : mixed

Methods

getSql()  : mixed
parse()  : mixed

Properties

$field

private mixed $field = null

$values

private mixed $values = array()

Methods

getSql()

public getSql(SqlWalker $sqlWalker) : mixed
Parameters
$sqlWalker : SqlWalker

parse()

public parse(Parser $parser) : mixed
Parameters
$parser : Parser

        
On this page

Search results