Is there any way to approach this:
$queryBuilder->table('table')->where('id', '=', 1)->update([
'number' => 'number' + 1
]);
So query would look like this:
UPDATE table SET number = number + 1 WHERE id = 1;
Without having to use raw queries?
PD: I know doing 'number' + 1 is wrong, it is just a way to explain myself.
Is there any way to approach this:
So query would look like this:
Without having to use raw queries?
PD: I know doing
'number' + 1is wrong, it is just a way to explain myself.