method getUpdate documentation in bbn\Db

Returns the SQL code for an UPDATE statement.

Example

X::dump($db->getUpdate([ 'tables' => ['table_users'], 'fields' => ['name','surname'] ])); /* (string) UPDATE `db_example`.`table_users` SET `table_users`.`name` = ?, `table_users`.`surname` = ? function(array $cfg) { $this->ensureLanguageMethodExists(__FUNCTION__); $cfg['kind'] = 'UPDATE'; return $this->language->getUpdate($this->processCfg($cfg)); }

Returns the SQL code for an UPDATE statement. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.