1763. Class

1763.1. Zend\Db\Sql\Update

@property Where $where

1763.1.1. Methods

1763.1.1.1. __construct

__construct()

Constructor

Parameters:null|string|TableIdentifier

1763.1.1.2. table

table()

Specify table for statement

Parameters:string|TableIdentifier
Return type:Update

1763.1.1.3. set

set()

Set key/value pairs to update

Parameters:
  • array – Associative array of key values
  • string – One of the VALUES_* constants
Throws ExceptionInvalidArgumentException:
 
Return type:

Update

1763.1.1.4. where

where()

Create where clause

Parameters:
  • Where|Closure|string|array
  • string – One of the OP_* constants from PredicatePredicateSet
Throws ExceptionInvalidArgumentException:
 
Return type:

Select

1763.1.1.5. getRawState

getRawState()

1763.1.1.6. prepareStatement

prepareStatement()

Prepare statement

Parameters:
  • AdapterInterface
  • StatementContainerInterface
Return type:

void

1763.1.1.7. getSqlString

getSqlString()

Get SQL string for statement

Parameters:null|PlatformInterface – If null, defaults to Sql92
Return type:string

1763.1.1.8. __get

__get()

Variable overloading

Proxies to “where” only

Parameters:string
Return type:mixed

1763.1.1.9. __clone

__clone()

__clone

Resets the where object each time the Update is cloned.

Return type:void

1763.1.2. Constants

1763.1.2.1. SPECIFICATION_UPDATE

1763.1.2.2. SPECIFICATION_WHERE

1763.1.2.3. VALUES_MERGE

1763.1.2.4. VALUES_SET