You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__Note:__ The `data` and `sqlString` arguments are individually
638
+
optional but at least one of them must be specified.
639
+
637
640
638
641
| Param | Type | Description |
639
642
|:--- |:--- |:--- |
640
-
| data | <code>Object</code> | <code>Array</code> | An object of (column name)-(data value) pairs or an array containing either 1) an array of arrays of data values or 2) an array of column names and the data array from 1). |
641
-
|[sqlString]| <code>string</code> | SQL to be appended to the query.<br>This would only be used to add an `ON DUPLICATE KEY UPDATE` clause. |
643
+
|[data]| <code>Object</code> | <code>Array</code> | An object of (column name)-(data value) pairs or an array containing either 1) an array of arrays of data values or 2) an array of column names and the data array from 1). |
644
+
|[sqlString]| <code>string</code> | SQL to be appended to the query. If `data` is provided, it is appended directly after the formatted data, otherwise it is appended after `"INSERT INTO tableName"`. |
642
645
|[values]| <code>Array</code> | Values to replace the placeholders in `sqlString`. |
643
646
|[cb]| <code>[queryCallback](#module_mysql-plus..queryCallback)</code> | A callback that gets called with the results of the query. |
0 commit comments