I have no problem to update single row using methods JDatabaseDriverMysqli->updateObject(..)
or JDatabaseQueryMysqli->update(...)->set(...)->values(...)
, but then you create separate query for each row. Are there Joomla methods which would allow multiple rows updates with single query?
Asked
Active
Viewed 390 times
0

Lukas Greblikas
- 649
- 6
- 14
1 Answers
0
I ended up using Joomla methods to insert new rows and then adding
ON DUPLICATE KEY UPDATE,
a=VALUES(a),
b=VALUES(b),
c=VALUES(c);
at the end of Joomla constructed insert query.

Community
- 1
- 1

Lukas Greblikas
- 649
- 6
- 14