From c716093be6a4ce644586f61a6f0174191d21d5d2 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Wed, 14 Feb 2024 09:14:52 +0000 Subject: [PATCH] feat(doc): add assoc array ref to README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index afc4aa4..fc121e9 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,9 @@ $coffee = MySQL->for("beverages")->limit(1)->flatten()->select(["beverage_name", # INSERT -Use `MySQL->insert()` to append a new row to a database table +Use `MySQL->insert()` to append a new row to a database table. + +Passing a sequential array to `insert()` will assume that you wish to insert data for all defined columns in the table. Pass an associative array of `[column_name => value]` to INSERT data for specific columns (assuming the other columns have a [DEFAULT](https://dev.mysql.com/doc/refman/8.0/en/data-type-defaults.html) value defined). ```php MySQL->insert(