@@ -1096,6 +1096,16 @@ Or as an array:
10961096You may also use the ``$builder->set() `` method described above when
10971097performing updates.
10981098
1099+ $builder->getCompiledUpdate()
1100+ -----------------------------
1101+
1102+ This works exactly the same way as ``$builder->getCompiledInsert() `` except
1103+ that it produces an **UPDATE ** SQL string instead of an **INSERT ** SQL string.
1104+
1105+ For more information view documentation for `$builder->getCompiledInsert() `_.
1106+
1107+ .. note :: This method doesn't work for batched updates.
1108+
10991109.. _update-batch :
11001110
11011111UpdateBatch
@@ -1141,16 +1151,6 @@ Since v4.3.0, you can also update from a query with the ``setQueryAsData()`` met
11411151
11421152.. note :: It is required to alias the columns of the select query to match those of the target table.
11431153
1144- $builder->getCompiledUpdate()
1145- -----------------------------
1146-
1147- This works exactly the same way as ``$builder->getCompiledInsert() `` except
1148- that it produces an **UPDATE ** SQL string instead of an **INSERT ** SQL string.
1149-
1150- For more information view documentation for ``$builder->getCompiledInsert() ``.
1151-
1152- .. note :: This method doesn't work for batched updates.
1153-
11541154*************
11551155Deleting Data
11561156*************
@@ -1174,6 +1174,14 @@ the data to the first parameter of the method:
11741174If you want to delete all data from a table, you can use the ``truncate() ``
11751175method, or ``emptyTable() ``.
11761176
1177+ $builder->getCompiledDelete()
1178+ -----------------------------
1179+
1180+ This works exactly the same way as ``$builder->getCompiledInsert() `` except
1181+ that it produces a **DELETE ** SQL string instead of an **INSERT ** SQL string.
1182+
1183+ For more information view documentation for `$builder->getCompiledInsert() `_.
1184+
11771185.. _delete-batch :
11781186
11791187DeleteBatch
@@ -1220,14 +1228,6 @@ Generates a **TRUNCATE** SQL string and runs the query.
12201228.. note :: If the TRUNCATE command isn't available, ``truncate()`` will
12211229 execute as "DELETE FROM table".
12221230
1223- $builder->getCompiledDelete()
1224- -----------------------------
1225-
1226- This works exactly the same way as ``$builder->getCompiledInsert() `` except
1227- that it produces a **DELETE ** SQL string instead of an **INSERT ** SQL string.
1228-
1229- For more information view documentation for ``$builder->getCompiledInsert() ``.
1230-
12311231**********************
12321232Conditional Statements
12331233**********************
0 commit comments