xPDOQuery.set
Последнее обновление not available | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDOQuery::set¶
Задаёт значения, которые должны быть записаны запросом UPDATE. Запрос должен быть в режиме UPDATE (см. command()); значения объединяются с условиями WHERE, построенными через where().
Синтаксис¶
xPDOQuery set (array $values)
Пример¶
$query = $xpdo->newQuery('Box');
$query->command('UPDATE');
$query->set(array('color' => 'blue'));
$query->where(array('width:<' => 10));
$xpdo->exec($query->toSQL());
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










