File tree Expand file tree Collapse file tree
user_guide_src/source/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1095,12 +1095,17 @@ UpdateBatch
10951095$builder->updateBatch()
10961096-----------------------
10971097
1098+ .. note :: Since v4.3.0, the second parameter ``$index`` of ``updateBatch()`` has
1099+ changed to ``$constraints ``. It now accepts types array, string, or ``RawSql ``.
1100+
10981101Generates an update string based on the data you supply, and runs the query.
10991102You can either pass an **array ** or an **object ** to the method.
11001103Here is an example using an array:
11011104
11021105.. literalinclude :: query_builder/092.php
11031106
1107+ .. note :: Since v4.3.0, the generated SQL structure has been Improved.
1108+
11041109The first parameter is an associative array of values, the second parameter is the where key.
11051110
11061111.. note :: All values except ``RawSql`` are escaped automatically producing safer queries.
You can’t perform that action at this time.
0 commit comments