Aswathy S Aswathy S - 1 year ago 214
SQL Question

Update table using custom queries in Typo3 Extbase

I have a table named 'user'.I need to update the field 'email' .Is there any custom build queries for updating.I have only the uid of user.

I mean.. Is there any typo3 custom queries equivalent to

Update table 'user' set email = '' where uid = 1;


$query = $this->createQuery();
$query->equals('organization', $organization),
$query->contains('regions', $region)
return $query->execute();

Answer Source

Why don't you use

exec_UPDATEquery    (
    $no_quote_fields = false 

Please refer exec_UPDATEquery From TYPO3

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download