We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a2f0c7 commit ebb950aCopy full SHA for ebb950a
1 file changed
user_guide_src/source/database/query_builder.rst
@@ -878,6 +878,9 @@ insertBatch
878
$builder->insertBatch()
879
-----------------------
880
881
+Insert from Data
882
+^^^^^^^^^^^^^^^^
883
+
884
Generates an insert string based on the data you supply, and runs the
885
query. You can either pass an **array** or an **object** to the
886
method. Here is an example using an array:
@@ -890,6 +893,9 @@ The first parameter is an associative array of values.
890
893
891
894
.. warning:: When you use ``RawSql``, you MUST escape the data manually. Failure to do so could result in SQL injections.
892
895
896
+Insert from a Query
897
+^^^^^^^^^^^^^^^^^^^
898
899
You can also insert from a query:
900
901
.. literalinclude:: query_builder/117.php
0 commit comments