Skip to content

Commit ebb950a

Browse files
committed
docs: add section titles for InsertBatch
1 parent 0a2f0c7 commit ebb950a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,9 @@ insertBatch
878878
$builder->insertBatch()
879879
-----------------------
880880

881+
Insert from Data
882+
^^^^^^^^^^^^^^^^
883+
881884
Generates an insert string based on the data you supply, and runs the
882885
query. You can either pass an **array** or an **object** to the
883886
method. Here is an example using an array:
@@ -890,6 +893,9 @@ The first parameter is an associative array of values.
890893

891894
.. warning:: When you use ``RawSql``, you MUST escape the data manually. Failure to do so could result in SQL injections.
892895

896+
Insert from a Query
897+
^^^^^^^^^^^^^^^^^^^
898+
893899
You can also insert from a query:
894900

895901
.. literalinclude:: query_builder/117.php

0 commit comments

Comments
 (0)