mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 08:43:40 +02:00
feat(doc): add assoc array ref to README
This commit is contained in:
parent
17e9c15e9a
commit
c716093be6
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ $coffee = MySQL->for("beverages")->limit(1)->flatten()->select(["beverage_name",
|
||||||
|
|
||||||
# INSERT
|
# 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
|
```php
|
||||||
MySQL->insert(
|
MySQL->insert(
|
||||||
|
|
Loading…
Add table
Reference in a new issue